Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
75f57670b03a33dd165685fe1f252969ef5c16ea
/
.
/
tests
/
ui
/
traits
/
anon-static-method.rs
blob: 6a348874b4cf5196c184a64ec656a63c051d7ecf [
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
);
}