rust/tests/ui/resolve/resolve-self-in-impl-2.rs
2023-01-11 09:32:08 +00:00

7 lines
188 B
Rust

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() {}