summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/ex-E0612.rs
blob: c8ea53ae9d830c70543415bcb223b0f1a7b47916 (plain)
1
2
3
4
5
6
struct Foo(u32);

fn main() {
   let y = Foo(0);
   y.1; //~ ERROR no field `1` on type `Foo`
}