]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/mir/mir-inlining/no-trait-method-issue-40473.rs
2 // compile-flags:-Zmir-opt-level=3
4 fn bar(&self) -> usize { 2 }
8 fn bar(&self) -> usize { 3 }
11 // Test a case where MIR would inline the default trait method
12 // instead of bailing out. Issue #40473.
14 let result
= ().bar();
15 assert_eq
!(result
, 3);