Skip to content

Commit

Permalink
Fix trybuild drift
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Apr 1, 2023
1 parent d43378e commit d8532ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test_suite/ui/invalid_name_in_default.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0599]: no variant or associated item named `C` found for enum `Test` in the current scope
--> $DIR/invalid_name_in_default.rs:3:26
--> ui/invalid_name_in_default.rs:3:26
|
3 | #[bitflags(default = A | C)]
| ^
Expand All @@ -8,4 +8,4 @@ error[E0599]: no variant or associated item named `C` found for enum `Test` in t
| help: there is a variant with a similar name: `A`
...
6 | enum Test {
| --------- variant or associated item `C` not found here
| --------- variant or associated item `C` not found for this enum
4 changes: 2 additions & 2 deletions test_suite/ui/literal_out_of_range.stderr
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error: literal out of range for `u64`
--> $DIR/literal_out_of_range.rs:5:17
--> ui/literal_out_of_range.rs:5:17
|
5 | BigNumber = 0xdeadbeefcafebabe1337,
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[deny(overflowing_literals)]` on by default
= note: the literal `0xdeadbeefcafebabe1337` (decimal `1051570404360395033547575`) does not fit into the type `u64` and will become `13758438582043677495u64`
= help: consider using the type `u128` instead
= note: `#[deny(overflowing_literals)]` on by default
10 changes: 6 additions & 4 deletions test_suite/ui/overlapping_flags.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
error[E0081]: discriminant value `1` already exists
--> $DIR/overlapping_flags.rs:6:23
error[E0081]: discriminant value `1` assigned more than once
--> ui/overlapping_flags.rs:4:1
|
4 | enum Foo {
| ^^^^^^^^
5 | SomeFlag = 1 << 0,
| ------ first use of `1`
| ------ `1` assigned here
6 | OverlappingFlag = 1 << 0,
| ^^^^^^ enum already has `1`
| ------ `1` assigned here

0 comments on commit d8532ef

Please sign in to comment.