os-rust/tests/ui/error-codes/E0221.rs

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

28 lines
324 B
Rust
Raw Normal View History

2016-08-04 01:51:52 +02:00
trait T1 {}
trait T2 {}
trait Foo {
type A: T1;
2016-08-04 01:51:52 +02:00
}
trait Bar : Foo {
type A: T2;
2016-08-04 01:51:52 +02:00
fn do_something() {
2016-08-18 00:43:18 +02:00
let _: Self::A;
//~^ ERROR E0221
2016-10-23 21:53:31 +03:00
}
}
trait T3 {}
trait My : std::str::FromStr {
type Err: T3;
2016-10-23 21:53:31 +03:00
fn test() {
let _: Self::Err;
//~^ ERROR E0221
2016-08-04 01:51:52 +02:00
}
}
fn main() {
}