@@ -21,7 +21,7 @@ LL | (y: T) {
2121 | ^ use of generic parameter from outer item
2222
2323error[E0401]: can't use `Self` from outer item
24- --> $DIR/E0401.rs:24 :25
24+ --> $DIR/E0401.rs:22 :25
2525 |
2626LL | impl<T> Iterator for A<T> {
2727 | ---- `Self` type implicitly declared here, by this `impl`
@@ -32,45 +32,6 @@ LL | fn helper(sel: &Self) -> u8 {
3232 | use of `Self` from outer item
3333 | refer to the type directly here instead
3434
35- error[E0283]: type annotations needed
36- --> $DIR/E0401.rs:11:5
37- |
38- LL | bfnr(x);
39- | ^^^^ cannot infer type of the type parameter `V` declared on the function `bfnr`
40- |
41- = note: cannot satisfy `_: Baz<_>`
42- note: required by a bound in `bfnr`
43- --> $DIR/E0401.rs:4:19
44- |
45- LL | fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) {
46- | ^^^^^^ required by this bound in `bfnr`
47- help: consider specifying the generic arguments
48- |
49- LL | bfnr::<U, V, W>(x);
50- | +++++++++++
51-
52- error[E0283]: type annotations needed
53- --> $DIR/E0401.rs:11:5
54- |
55- LL | bfnr(x);
56- | ^^^^ cannot infer type of the type parameter `W` declared on the function `bfnr`
57- |
58- = note: multiple `impl`s satisfying `_: Fn()` found in the following crates: `alloc`, `core`:
59- - impl<A, F> Fn<A> for &F
60- where A: Tuple, F: Fn<A>, F: ?Sized;
61- - impl<Args, F, A> Fn<Args> for Box<F, A>
62- where Args: Tuple, F: Fn<Args>, A: Allocator, F: ?Sized;
63- note: required by a bound in `bfnr`
64- --> $DIR/E0401.rs:4:30
65- |
66- LL | fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) {
67- | ^^^^ required by this bound in `bfnr`
68- help: consider specifying the generic arguments
69- |
70- LL | bfnr::<U, V, W>(x);
71- | +++++++++++
72-
73- error: aborting due to 5 previous errors
35+ error: aborting due to 3 previous errors
7436
75- Some errors have detailed explanations: E0283, E0401.
76- For more information about an error, try `rustc --explain E0283`.
37+ For more information about this error, try `rustc --explain E0401`.
0 commit comments