rust/tests/ui/error-codes/E0616.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
187 B
Rust
Raw Normal View History

2017-06-12 16:53:12 -05:00
mod a {
pub struct Foo {
x: u32,
}
impl Foo {
pub fn new() -> Foo { Foo { x: 0 } }
}
}
fn main() {
let f = a::Foo::new();
f.x; //~ ERROR E0616
}