]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/impl-can-not-have-untraitful-items.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() { }