diff --git a/src/test/ui/consts/const_discriminant.rs b/src/test/ui/consts/const_discriminant.rs index c67be3c3713..55e2918c85f 100644 --- a/src/test/ui/consts/const_discriminant.rs +++ b/src/test/ui/consts/const_discriminant.rs @@ -4,6 +4,7 @@ use std::mem::{discriminant, Discriminant}; +#[inline(never)] fn identity(x: T) -> T { x } enum Test {