1 error[E0401]: can't use type parameters from outer function
5 | - type variable from outer function
6 LL | fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) { //~ ERROR E0401
7 | --------------------------- ^ use of type variable from outer function
9 | help: try using a local type parameter instead: `bfnr<U, V: Baz<U>, W: Fn(), T>`
11 error[E0401]: can't use type parameters from outer function
12 --> $DIR/E0401.rs:9:16
14 LL | fn foo<T>(x: T) {
15 | - type variable from outer function
18 | --- try adding a local type parameter in this method instead
20 LL | (y: T) { //~ ERROR E0401
21 | ^ use of type variable from outer function
23 error[E0401]: can't use type parameters from outer function
24 --> $DIR/E0401.rs:22:25
26 LL | impl<T> Iterator for A<T> {
27 | ---- `Self` type implicitly declared here, by this `impl`
29 LL | fn helper(sel: &Self) -> u8 { //~ ERROR E0401
32 | use of type variable from outer function
33 | use a type here instead
35 error: aborting due to 3 previous errors
37 For more information about this error, try `rustc --explain E0401`.