Skip to content

Commit 72c92b3

Browse files
committed
better test documentation
1 parent 784e431 commit 72c92b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/run-pass/mir-inlining/no-trait-method-issue-40473.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ impl Foo for () {
1717
fn bar(&self) -> usize { 3 }
1818
}
1919

20+
// Test a case where MIR would inline the default trait method
21+
// instead of bailing out. Issue #40473.
2022
fn main() {
2123
let result = ().bar();
2224
assert_eq!(result, 3);

0 commit comments

Comments
 (0)