Sign in
android
/
toolchain
/
rustc
/
43f0694b1feb1296004d84509e01177159e71be0
/
.
/
src
/
test
/
ui
/
traits
/
anon-trait-static-method.rs
blob: ede01afae0294c71160ef132c7ed0d0c1c4f0a43 [
file
] [
log
] [
blame
]
// run-pass
struct
Foo
{
x
:
isize
}
impl
Foo
{
pub
fn
new
()
->
Foo
{
Foo
{
x
:
3
}
}
}
pub
fn
main
()
{
let
x
=
Foo
::
new
();
println
!(
"{}"
,
x
.
x
);
}