|
1 |
| -error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `:` |
2 |
| - --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:33 |
| 1 | +error: syntax does not allow named arguments |
| 2 | + --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:32 |
3 | 3 | |
|
4 | 4 | LL | dealloc(ptr2, Layout::(x: !)(1, 1));
|
5 |
| - | --- ^ expected one of 7 possible tokens |
6 |
| - | | |
7 |
| - | while parsing this parenthesized list of type arguments starting here |
| 5 | + | ^ help: remove name of the param |
8 | 6 |
|
9 |
| -error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)` |
10 |
| - --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:43 |
| 7 | +error[E0425]: cannot find function `dealloc` in this scope |
| 8 | + --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:9 |
11 | 9 | |
|
12 | 10 | LL | dealloc(ptr2, Layout::(x: !)(1, 1));
|
13 |
| - | ^ expected one of `.`, `;`, `?`, `}`, or an operator |
| 11 | + | ^^^^^^^ not found in this scope |
| 12 | + | |
| 13 | +help: consider importing this function |
| 14 | + | |
| 15 | +LL + use std::alloc::dealloc; |
| 16 | + | |
| 17 | + |
| 18 | +error[E0425]: cannot find value `ptr2` in this scope |
| 19 | + --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:17 |
| 20 | + | |
| 21 | +LL | dealloc(ptr2, Layout::(x: !)(1, 1)); |
| 22 | + | ^^^^ not found in this scope |
| 23 | + |
| 24 | +error[E0658]: the `!` type is experimental |
| 25 | + --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:35 |
| 26 | + | |
| 27 | +LL | dealloc(ptr2, Layout::(x: !)(1, 1)); |
| 28 | + | ^ |
| 29 | + | |
| 30 | + = note: see issue #35121 <https://github.com/rust-lang/rust/issues/35121> for more information |
| 31 | + = help: add `#![feature(never_type)]` to the crate attributes to enable |
| 32 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 33 | + |
| 34 | +error[E0425]: cannot find function, tuple struct or tuple variant `Layout` in this scope |
| 35 | + --> $DIR/diagnostics-parenthesized-type-arguments-ice-issue-122345.rs:5:23 |
| 36 | + | |
| 37 | +LL | dealloc(ptr2, Layout::(x: !)(1, 1)); |
| 38 | + | ^^^^^^ not found in this scope |
14 | 39 |
|
15 |
| -error: aborting due to 2 previous errors |
| 40 | +error: aborting due to 5 previous errors |
16 | 41 |
|
| 42 | +Some errors have detailed explanations: E0425, E0658. |
| 43 | +For more information about an error, try `rustc --explain E0425`. |
0 commit comments