]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-self-in-impl-2.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / resolve / resolve-self-in-impl-2.rs
1 struct S<T = u8>(T);
2 trait Tr<T = u8> {}
3
4 impl Self for S {} //~ ERROR expected trait, found self type `Self`
5 impl Self::N for S {} //~ ERROR cannot find trait `N` in `Self`
6
7 fn main() {}