Skip to content

Commit 198089f

Browse files
committed
ui tests: update expected output for latest nightly
1 parent 0c5b3ff commit 198089f

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

test_suite/ui/invalid_attribute_syntax.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ error: unexpected end of input, expected identifier
1010
9 | #[bitflags(default = A |)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
|
13-
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
13+
= note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
1414

1515
error: unexpected end of input, expected identifier
1616
--> $DIR/invalid_attribute_syntax.rs:15:1
1717
|
1818
15 | #[bitflags(default =)]
1919
| ^^^^^^^^^^^^^^^^^^^^^^
2020
|
21-
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
21+
= note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
2222

2323
error: expected `=`
2424
--> $DIR/invalid_attribute_syntax.rs:21:1
2525
|
2626
21 | #[bitflags(default)]
2727
| ^^^^^^^^^^^^^^^^^^^^
2828
|
29-
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
29+
= note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
3030

3131
error: expected `default`
3232
--> $DIR/invalid_attribute_syntax.rs:27:12

test_suite/ui/not_enum.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
struct Foo(u16);
44

55
#[enumflags2::bitflags]
6-
#[derive(Copy, Clone)]
76
const WTF: u8 = 42;
87

98
fn main() {}

test_suite/ui/not_enum.stderr

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ error: #[bitflags] requires an enum
55
3 | | struct Foo(u16);
66
| |________________^
77

8-
error[E0774]: `derive` may only be applied to structs, enums and unions
9-
--> $DIR/not_enum.rs:6:1
10-
|
11-
6 | #[derive(Copy, Clone)]
12-
| ^^^^^^^^^^^^^^^^^^^^^^
13-
148
error: #[bitflags] requires an enum
159
--> $DIR/not_enum.rs:6:1
1610
|
17-
6 | / #[derive(Copy, Clone)]
18-
7 | | const WTF: u8 = 42;
19-
| |___________________^
11+
6 | const WTF: u8 = 42;
12+
| ^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)