Skip to content

Commit 854f207

Browse files
committed
Update tests
1 parent 4315b85 commit 854f207

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/ui/parser/issue-66357-unexpected-unreachable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
fn f() { |[](* }
1515
//~^ ERROR expected one of `,` or `:`, found `(`
16-
//~| ERROR expected one of `&`, `(`, `)`, `-`, `...`, `..=`, `..`, `[`, `_`, `box`, `mut`, `ref`, `|`, identifier, or path, found `*`
16+
//~| ERROR expected one of `&`, `(`, `)`, `-`, `...`, `..=`, `..`, `[`, `_`, `box`, `const`, `mut`, `ref`, `|`, identifier, or path, found `*`

src/test/ui/parser/issue-66357-unexpected-unreachable.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected one of `,` or `:`, found `(`
44
LL | fn f() { |[](* }
55
| ^ expected one of `,` or `:`
66

7-
error: expected one of `&`, `(`, `)`, `-`, `...`, `..=`, `..`, `[`, `_`, `box`, `mut`, `ref`, `|`, identifier, or path, found `*`
7+
error: expected one of `&`, `(`, `)`, `-`, `...`, `..=`, `..`, `[`, `_`, `box`, `const`, `mut`, `ref`, `|`, identifier, or path, found `*`
88
--> $DIR/issue-66357-unexpected-unreachable.rs:14:14
99
|
1010
LL | fn f() { |[](* }

src/test/ui/parser/keyword-const-as-identifier.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0658]: inline-const is experimental
88
--> $DIR/keyword-const-as-identifier.rs:2:9
99
|
1010
LL | let const = "foo";
11-
| ^^^^^
11+
| ^^^^^^^
1212
|
1313
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
1414
= help: add `#![feature(inline_const)]` to the crate attributes to enable

0 commit comments

Comments
 (0)