rust/tests/ui/treat-err-as-bug/eagerly-emit.rs
2024-01-12 03:30:17 +00:00

12 lines
228 B
Rust

// compile-flags: -Zeagerly-emit-delayed-bugs
trait Foo {}
fn main() {}
fn f() -> impl Foo {
//~^ ERROR the trait bound `i32: Foo` is not satisfied
//~| ERROR `report_selection_error` did not emit an error
1i32
}