-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d43378e
commit d8532ef
Showing
3 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |