FileCheck inline_trait_method

This commit is contained in:
Ryan Mehri 2023-10-20 21:32:56 -07:00
parent f7acf17945
commit 1b9cb5d59b

View File

@ -1,4 +1,3 @@
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Z span_free_formats
@ -8,6 +7,8 @@ fn main() {
// EMIT_MIR inline_trait_method.test.Inline.after.mir
fn test(x: &dyn X) -> u32 {
// CHECK-LABEL: fn test(
// CHECK-NOT: (inlined <dyn X as X>::y)
x.y()
}