1 error[E0277]: the trait bound `Foo: Trait` is not satisfied
2 --> $DIR/enclosing-scope.rs:14:11
4 LL | fn f<T: Trait>(x: T) {}
5 | ----- required by this bound in `f`
10 | | ^^^^^ the trait `Trait` is not implemented for `Foo`
15 | |_____- in this scope
17 error[E0277]: the trait bound `Foo: Trait` is not satisfied
18 --> $DIR/enclosing-scope.rs:16:15
20 LL | fn f<T: Trait>(x: T) {}
21 | ----- required by this bound in `f`
26 | | ^^^^^ the trait `Trait` is not implemented for `Foo`
28 | |_________- in this scope
30 error[E0277]: the trait bound `Foo: Trait` is not satisfied
31 --> $DIR/enclosing-scope.rs:22:15
33 LL | fn f<T: Trait>(x: T) {}
34 | ----- required by this bound in `f`
42 | | ^^^^^ the trait `Trait` is not implemented for `Foo`
48 error[E0277]: the trait bound `Foo: Trait` is not satisfied
49 --> $DIR/enclosing-scope.rs:26:7
51 LL | fn f<T: Trait>(x: T) {}
52 | ----- required by this bound in `f`
60 | | ^^^^^ the trait `Trait` is not implemented for `Foo`
64 error: aborting due to 4 previous errors
66 For more information about this error, try `rustc --explain E0277`.