diff options
Diffstat (limited to 'src/test/ui/error-codes/ex-E0611.rs')
-rw-r--r-- | src/test/ui/error-codes/ex-E0611.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/error-codes/ex-E0611.rs b/src/test/ui/error-codes/ex-E0611.rs deleted file mode 100644 index f18a3619f..000000000 --- a/src/test/ui/error-codes/ex-E0611.rs +++ /dev/null @@ -1,12 +0,0 @@ -mod a { - pub struct Foo(u32); - - impl Foo { - pub fn new() -> Foo { Foo(0) } - } -} - -fn main() { - let y = a::Foo::new(); - y.0; //~ ERROR field `0` of struct `Foo` is private -} |