11error[E0277]: the trait bound `NonLeakS: Leak` is not satisfied
2- --> $DIR/maybe-bounds-in-traits.rs:52 :20
2+ --> $DIR/maybe-bounds-in-traits.rs:49 :20
33 |
44LL | impl LeakT for NonLeakS {}
55 | ^^^^^^^^ unsatisfied trait bound
@@ -10,13 +10,13 @@ help: the trait `Leak` is not implemented for `NonLeakS`
1010LL | struct NonLeakS;
1111 | ^^^^^^^^^^^^^^^
1212note: required by a bound in `LeakT`
13- --> $DIR/maybe-bounds-in-traits.rs:51 :5
13+ --> $DIR/maybe-bounds-in-traits.rs:48 :5
1414 |
1515LL | trait LeakT {}
1616 | ^^^^^^^^^^^^^^ required by this bound in `LeakT`
1717
1818error[E0277]: the trait bound `NonLeakS: Leak` is not satisfied
19- --> $DIR/maybe-bounds-in-traits.rs:61 :22
19+ --> $DIR/maybe-bounds-in-traits.rs:58 :22
2020 |
2121LL | type Leak2 = NonLeakS;
2222 | ^^^^^^^^ unsatisfied trait bound
@@ -27,13 +27,13 @@ help: the trait `Leak` is not implemented for `NonLeakS`
2727LL | struct NonLeakS;
2828 | ^^^^^^^^^^^^^^^
2929note: required by a bound in `Test1::Leak2`
30- --> $DIR/maybe-bounds-in-traits.rs:61 :9
30+ --> $DIR/maybe-bounds-in-traits.rs:58 :9
3131 |
3232LL | type Leak2 = NonLeakS;
3333 | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Test1::Leak2`
3434
3535error[E0658]: `&mut Self` cannot be used as the type of `self` without the `arbitrary_self_types` feature
36- --> $DIR/maybe-bounds-in-traits.rs:80 :20
36+ --> $DIR/maybe-bounds-in-traits.rs:77 :20
3737 |
3838LL | fn mut_foo(&mut self) {}
3939 | ^^^^^^^^^
0 commit comments