Skip to content

Commit

Permalink
discrimant test must not be inlined!
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Mar 9, 2020
1 parent 4b724e8 commit 314da73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/consts/const_discriminant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

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

enum Test {
Expand Down

0 comments on commit 314da73

Please sign in to comment.