Skip to content

Commit 314da73

Browse files
committed
discrimant test must not be inlined!
1 parent 4b724e8 commit 314da73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/test/ui/consts/const_discriminant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use std::mem::{discriminant, Discriminant};
66

7+
#[inline(never)]
78
fn identity<T>(x: T) -> T { x }
89

910
enum Test {

0 commit comments

Comments
 (0)