better test documentation
This commit is contained in:
parent
784e4316eb
commit
72c92b3233
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue