rust/tests/ui/resolve/resolve-self-in-impl-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
188 B
Rust
Raw Normal View History

2017-01-08 11:06:44 +00:00
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() {}