We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a379537 commit 9c9a947Copy full SHA for 9c9a947
tests/run-pass/c_enums.rs
@@ -11,11 +11,13 @@ enum Signed {
11
}
12
13
fn foo() -> [u8; 3] {
14
- [Foo::Bar as u8, Foo::Baz as u8, Foo::Quux as u8]
+ let baz = Foo::Baz; // let-expansion changes the MIR significantly
15
+ [Foo::Bar as u8, baz as u8, Foo::Quux as u8]
16
17
18
fn signed() -> [i8; 3] {
- [Signed::Bar as i8, Signed::Baz as i8, Signed::Quux as i8]
19
+ let baz = Signed::Baz; // let-expansion changes the MIR significantly
20
+ [Signed::Bar as i8, baz as i8, Signed::Quux as i8]
21
22
23
fn unsafe_match() -> bool {
0 commit comments