ec25d6db53
This gives one extra error message on two tests, but is necessary to fix bigger problems caused by the cancellation of stashed errors. (Note: why not just avoid stashing altogether? Because that resulted in additional output changes.)
14 lines
243 B
Rust
14 lines
243 B
Rust
//@ edition: 2021
|
|
|
|
trait Has {
|
|
fn has() {}
|
|
}
|
|
|
|
trait HasNot {}
|
|
|
|
fn main() {
|
|
HasNot::has();
|
|
//~^ ERROR trait objects must include the `dyn` keyword
|
|
//~| ERROR no function or associated item named `has` found for trait `HasNot`
|
|
}
|