Skip to content

Commit d8532ef

Browse files
committed
Fix trybuild drift
1 parent d43378e commit d8532ef

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0599]: no variant or associated item named `C` found for enum `Test` in the current scope
2-
--> $DIR/invalid_name_in_default.rs:3:26
2+
--> ui/invalid_name_in_default.rs:3:26
33
|
44
3 | #[bitflags(default = A | C)]
55
| ^
@@ -8,4 +8,4 @@ error[E0599]: no variant or associated item named `C` found for enum `Test` in t
88
| help: there is a variant with a similar name: `A`
99
...
1010
6 | enum Test {
11-
| --------- variant or associated item `C` not found here
11+
| --------- variant or associated item `C` not found for this enum
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
error: literal out of range for `u64`
2-
--> $DIR/literal_out_of_range.rs:5:17
2+
--> ui/literal_out_of_range.rs:5:17
33
|
44
5 | BigNumber = 0xdeadbeefcafebabe1337,
55
| ^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: `#[deny(overflowing_literals)]` on by default
87
= note: the literal `0xdeadbeefcafebabe1337` (decimal `1051570404360395033547575`) does not fit into the type `u64` and will become `13758438582043677495u64`
98
= help: consider using the type `u128` instead
9+
= note: `#[deny(overflowing_literals)]` on by default
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
error[E0081]: discriminant value `1` already exists
2-
--> $DIR/overlapping_flags.rs:6:23
1+
error[E0081]: discriminant value `1` assigned more than once
2+
--> ui/overlapping_flags.rs:4:1
33
|
4+
4 | enum Foo {
5+
| ^^^^^^^^
46
5 | SomeFlag = 1 << 0,
5-
| ------ first use of `1`
7+
| ------ `1` assigned here
68
6 | OverlappingFlag = 1 << 0,
7-
| ^^^^^^ enum already has `1`
9+
| ------ `1` assigned here

0 commit comments

Comments
 (0)