rust/tests/ui/issues/issue-26262.stderr

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

16 lines
573 B
Plaintext
Raw Normal View History

2018-07-16 05:11:54 +08:00
error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
2018-12-25 23:56:47 +08:00
--> $DIR/issue-26262.rs:7:6
2018-07-16 05:11:54 +08:00
|
LL | impl<T: Tr> S<T::Assoc> {
| ^ unconstrained type parameter
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
2018-12-25 23:56:47 +08:00
--> $DIR/issue-26262.rs:17:6
2018-07-16 05:11:54 +08:00
|
LL | impl<'a,T: Trait2<'a>> Trait1<<T as Trait2<'a>>::Foo> for T {
| ^^ unconstrained lifetime parameter
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0207`.