1 error[E0277]: the trait bound `A: Trait` is not satisfied
2 --> $DIR/suggest-imm-mut-trait-implementations.rs:20:9
5 | --- ^ the trait `Trait` is not implemented for `A`
7 | required by a bound introduced by this call
9 note: required by a bound in `foo`
10 --> $DIR/suggest-imm-mut-trait-implementations.rs:14:11
12 LL | fn foo<X: Trait>(_: X) {}
13 | ^^^^^ required by this bound in `foo`
14 help: consider borrowing here
21 error[E0277]: the trait bound `B: Trait` is not satisfied
22 --> $DIR/suggest-imm-mut-trait-implementations.rs:21:9
25 | --- ^ the trait `Trait` is not implemented for `B`
27 | required by a bound introduced by this call
29 note: required by a bound in `foo`
30 --> $DIR/suggest-imm-mut-trait-implementations.rs:14:11
32 LL | fn foo<X: Trait>(_: X) {}
33 | ^^^^^ required by this bound in `foo`
34 help: consider borrowing here
39 error[E0277]: the trait bound `C: Trait` is not satisfied
40 --> $DIR/suggest-imm-mut-trait-implementations.rs:22:9
43 | --- ^ the trait `Trait` is not implemented for `C`
45 | required by a bound introduced by this call
47 note: required by a bound in `foo`
48 --> $DIR/suggest-imm-mut-trait-implementations.rs:14:11
50 LL | fn foo<X: Trait>(_: X) {}
51 | ^^^^^ required by this bound in `foo`
52 help: consider mutably borrowing here
57 error: aborting due to 3 previous errors
59 For more information about this error, try `rustc --explain E0277`.