]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/impl-can-not-have-untraitful-items.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / traits / impl-can-not-have-untraitful-items.rs
1 trait A { }
2
3 impl A for isize {
4     const BAR: () = (); //~ ERROR const `BAR` is not a member of trait `A`
5     type Baz = (); //~ ERROR type `Baz` is not a member of trait `A`
6     fn foo(&self) { } //~ ERROR method `foo` is not a member of trait `A`
7 }
8
9 fn main() { }