Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
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
);
}