]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/mir-inlining/no-trait-method-issue-40473.rs
better test documentation
[rust.git] / src / test / run-pass / mir-inlining / no-trait-method-issue-40473.rs
index 3a18fcfd28838392b5fedd83caeb774f65fc4a77..11a29d9741755d723578b5bb422ee50858e7988b 100644 (file)
@@ -17,6 +17,8 @@ impl Foo for () {
     fn bar(&self) -> usize { 3 }
 }
 
+// Test a case where MIR would inline the default trait method
+// instead of bailing out. Issue #40473.
 fn main() {
     let result = ().bar();
     assert_eq!(result, 3);