Skip to content

Commit

Permalink
ui tests: update expected output for latest nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Dec 13, 2021
1 parent 0c5b3ff commit 198089f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions test_suite/ui/invalid_attribute_syntax.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ error: unexpected end of input, expected identifier
9 | #[bitflags(default = A |)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

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

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

error: expected `default`
--> $DIR/invalid_attribute_syntax.rs:27:12
Expand Down
1 change: 0 additions & 1 deletion test_suite/ui/not_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
struct Foo(u16);

#[enumflags2::bitflags]
#[derive(Copy, Clone)]
const WTF: u8 = 42;

fn main() {}
11 changes: 2 additions & 9 deletions test_suite/ui/not_enum.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@ error: #[bitflags] requires an enum
3 | | struct Foo(u16);
| |________________^

error[E0774]: `derive` may only be applied to structs, enums and unions
--> $DIR/not_enum.rs:6:1
|
6 | #[derive(Copy, Clone)]
| ^^^^^^^^^^^^^^^^^^^^^^

error: #[bitflags] requires an enum
--> $DIR/not_enum.rs:6:1
|
6 | / #[derive(Copy, Clone)]
7 | | const WTF: u8 = 42;
| |___________________^
6 | const WTF: u8 = 42;
| ^^^^^^^^^^^^^^^^^^^

0 comments on commit 198089f

Please sign in to comment.