rust/tests/ui/treat-err-as-bug/eagerly-emit.rs

11 lines
166 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
1i32
}