We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784e431 commit 72c92b3Copy full SHA for 72c92b3
src/test/run-pass/mir-inlining/no-trait-method-issue-40473.rs
@@ -17,6 +17,8 @@ impl Foo for () {
17
fn bar(&self) -> usize { 3 }
18
}
19
20
+// Test a case where MIR would inline the default trait method
21
+// instead of bailing out. Issue #40473.
22
fn main() {
23
let result = ().bar();
24
assert_eq!(result, 3);
0 commit comments