about summary refs log tree commit diff
path: root/tests/ui/parser/class-implements-bad-trait.rs
blob: e30c1bc3a7f7bc9bd56faa150f644c5c2ee44fa6 (plain)
1
2
3
4
5
6
7
8
class cat : nonexistent { //~ ERROR expected one of `!` or `::`, found `cat`
  let meows: usize;
  new(in_x : usize) { self.meows = in_x; }
}

fn main() {
  let nyan = cat(0);
}