]> git.lizzy.rs Git - rust.git/commitdiff
better test documentation
authorDouglas Campos <qmx@qmx.me>
Thu, 7 Sep 2017 03:10:08 +0000 (23:10 -0400)
committerDouglas Campos <qmx@qmx.me>
Thu, 7 Sep 2017 03:10:08 +0000 (23:10 -0400)
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);