|
1 | 1 | error[E0425]: cannot find value `x` in this scope |
2 | | - --> $DIR/struct-pattern-on-non-struct-resolve-error.rs:5:9 |
| 2 | + --> $DIR/struct-pattern-on-non-struct-resolve-error.rs:8:9 |
3 | 3 | | |
4 | 4 | LL | x |
5 | 5 | | ^ not found in this scope |
6 | 6 |
|
7 | | -error[E0223]: ambiguous associated type |
| 7 | +error[E0658]: usage of qualified paths in this context is experimental |
8 | 8 | --> $DIR/struct-pattern-on-non-struct-resolve-error.rs:4:12 |
9 | 9 | | |
10 | | -LL | if let Iterator::Item { .. } = 1 { |
11 | | - | ^^^^^^^^^^^^^^ |
| 10 | +LL | if let <Vec<()> as Iterator>::Item { .. } = 1 { |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
12 | 12 | | |
13 | | -help: use fully-qualified syntax |
| 13 | + = note: see issue #86935 <https://github.com/rust-lang/rust/issues/86935> for more information |
| 14 | + = help: add `#![feature(more_qualified_paths)]` to the crate attributes to enable |
| 15 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 16 | + |
| 17 | +error[E0071]: expected struct, variant or union type, found inferred type |
| 18 | + --> $DIR/struct-pattern-on-non-struct-resolve-error.rs:4:12 |
| 19 | + | |
| 20 | +LL | if let <Vec<()> as Iterator>::Item { .. } = 1 { |
| 21 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a struct |
| 22 | + |
| 23 | +error[E0277]: `Vec<()>` is not an iterator |
| 24 | + --> $DIR/struct-pattern-on-non-struct-resolve-error.rs:4:12 |
| 25 | + | |
| 26 | +LL | if let <Vec<()> as Iterator>::Item { .. } = 1 { |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Vec<()>` is not an iterator |
14 | 28 | | |
15 | | -LL | if let <Ancestors<'_> as Iterator>::Item { .. } = 1 { |
16 | | - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
17 | | -LL | if let <Args as Iterator>::Item { .. } = 1 { |
18 | | - | ~~~~~~~~~~~~~~~~~~~~~~~~ |
19 | | -LL | if let <ArgsOs as Iterator>::Item { .. } = 1 { |
20 | | - | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
21 | | -LL | if let <CharIndices<'_> as Iterator>::Item { .. } = 1 { |
22 | | - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
23 | | - and 71 other candidates |
| 29 | + = help: the trait `Iterator` is not implemented for `Vec<()>` |
24 | 30 |
|
25 | | -error: aborting due to 2 previous errors |
| 31 | +error: aborting due to 4 previous errors |
26 | 32 |
|
27 | | -Some errors have detailed explanations: E0223, E0425. |
28 | | -For more information about an error, try `rustc --explain E0223`. |
| 33 | +Some errors have detailed explanations: E0071, E0277, E0425, E0658. |
| 34 | +For more information about an error, try `rustc --explain E0071`. |
0 commit comments