1 error[E0277]: the trait bound `Foo: Trait` is not satisfied
2 --> $DIR/enclosing-scope.rs:14:11
7 | | - ^^^^^ the trait `Trait` is not implemented for `Foo`
9 | | required by a bound introduced by this call
14 | |_____- in this scope
16 note: required by a bound in `f`
17 --> $DIR/enclosing-scope.rs:10:9
19 LL | fn f<T: Trait>(x: T) {}
20 | ^^^^^ required by this bound in `f`
22 error[E0277]: the trait bound `Foo: Trait` is not satisfied
23 --> $DIR/enclosing-scope.rs:16:15
28 | | - ^^^^^ the trait `Trait` is not implemented for `Foo`
30 | | required by a bound introduced by this call
32 | |_________- in this scope
34 note: required by a bound in `f`
35 --> $DIR/enclosing-scope.rs:10:9
37 LL | fn f<T: Trait>(x: T) {}
38 | ^^^^^ required by this bound in `f`
40 error[E0277]: the trait bound `Foo: Trait` is not satisfied
41 --> $DIR/enclosing-scope.rs:22:15
49 | | - ^^^^^ the trait `Trait` is not implemented for `Foo`
51 | | required by a bound introduced by this call
57 note: required by a bound in `f`
58 --> $DIR/enclosing-scope.rs:10:9
60 LL | fn f<T: Trait>(x: T) {}
61 | ^^^^^ required by this bound in `f`
63 error[E0277]: the trait bound `Foo: Trait` is not satisfied
64 --> $DIR/enclosing-scope.rs:26:7
72 | | - ^^^^^ the trait `Trait` is not implemented for `Foo`
74 | | required by a bound introduced by this call
78 note: required by a bound in `f`
79 --> $DIR/enclosing-scope.rs:10:9
81 LL | fn f<T: Trait>(x: T) {}
82 | ^^^^^ required by this bound in `f`
84 error: aborting due to 4 previous errors
86 For more information about this error, try `rustc --explain E0277`.