]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26262.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-26262.stderr
1 error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
2   --> $DIR/issue-26262.rs:7:6
3    |
4 LL | impl<T: Tr> S<T::Assoc> {
5    |      ^ unconstrained type parameter
6
7 error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
8   --> $DIR/issue-26262.rs:17:6
9    |
10 LL | impl<'a,T: Trait2<'a>> Trait1<<T as Trait2<'a>>::Foo> for T {
11    |      ^^ unconstrained lifetime parameter
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0207`.