summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/resolve-self-in-impl-2.rs
blob: f586760c8b096180f9c1ed5bec685b20e20dbab3 (plain)
1
2
3
4
5
6
7
struct S<T = u8>(T);
trait Tr<T = u8> {}

impl Self for S {} //~ ERROR expected trait, found self type `Self`
impl Self::N for S {} //~ ERROR cannot find trait `N` in `Self`

fn main() {}