better test documentation

This commit is contained in:
Douglas Campos 2017-09-06 23:10:08 -04:00
parent 784e4316eb
commit 72c92b3233

View 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);