|
| 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 | +warning: the feature `deref_patterns` is incomplete and may not be safe to use and/or cause compiler crashes |
| 22 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:8:12 |
| 23 | + | |
| 24 | +LL | #![feature(deref_patterns)] |
| 25 | + | ^^^^^^^^^^^^^^ |
| 26 | + | |
| 27 | + = note: see issue #87121 <https://github.com/rust-lang/rust/issues/87121> for more information |
| 28 | + = note: `#[warn(incomplete_features)]` on by default |
| 29 | + |
| 30 | +error: arbitrary expressions aren't allowed in patterns |
| 31 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:12:14 |
| 32 | + | |
| 33 | +LL | let vec![const { vec![] }]: Vec<usize> = vec![]; |
| 34 | + | ^^^^^^^^^^^^^^^^ |
| 35 | + |
| 36 | +error[E0164]: expected tuple struct or tuple variant, found associated function `<[_]>::into_vec` |
| 37 | + --> $DIR/ice-adjust-mode-unimplemented-for-constblock.rs:12:9 |
| 38 | + | |
| 39 | +LL | let vec![const { vec![] }]: Vec<usize> = vec![]; |
| 40 | + | ^^^^^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns |
| 41 | + | |
| 42 | + = help: for more information, visit https://doc.rust-lang.org/book/ch19-00-patterns.html |
| 43 | + = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 44 | + |
| 45 | +error: aborting due to 4 previous errors; 1 warning emitted |
| 46 | + |
| 47 | +Some errors have detailed explanations: E0164, E0532, E0658. |
| 48 | +For more information about an error, try `rustc --explain E0164`. |
0 commit comments