|
| 1 | +error[E0532]: expected a pattern, found a function call |
| 2 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:12:9 |
| 3 | + | |
| 4 | +LL | let vec![const { vec![] }]: Vec<usize> = vec![]; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct or tuple variant |
| 6 | + | |
| 7 | + = note: function calls are not allowed in patterns: <https://doc.rust-lang.org/book/ch19-00-patterns.html> |
| 8 | + = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 9 | + |
| 10 | +error[E0658]: usage of qualified paths in this context is experimental |
| 11 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:12:9 |
| 12 | + | |
| 13 | +LL | let vec![const { vec![] }]: Vec<usize> = vec![]; |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = note: see issue #86935 <https://github.com/rust-lang/rust/issues/86935> for more information |
| 17 | + = help: add `#![feature(more_qualified_paths)]` to the crate attributes to enable |
| 18 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 19 | + = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 20 | + |
| 21 | +error: arbitrary expressions aren't allowed in patterns |
| 22 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:12:14 |
| 23 | + | |
| 24 | +LL | let vec![const { vec![] }]: Vec<usize> = vec![]; |
| 25 | + | ^^^^^^^^^^^^^^^^ |
| 26 | + |
| 27 | +error[E0164]: expected tuple struct or tuple variant, found associated function `<[_]>::into_vec` |
| 28 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:12:9 |
| 29 | + | |
| 30 | +LL | let vec![const { vec![] }]: Vec<usize> = vec![]; |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns |
| 32 | + | |
| 33 | + = help: for more information, visit https://doc.rust-lang.org/book/ch19-00-patterns.html |
| 34 | + = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 35 | + |
| 36 | +error: aborting due to 4 previous errors |
| 37 | + |
| 38 | +Some errors have detailed explanations: E0164, E0532, E0658. |
| 39 | +For more information about an error, try `rustc --explain E0164`. |
0 commit comments