13 lines
238 B
Rust
13 lines
238 B
Rust
#![feature(negative_bounds)]
|
|
|
|
#[diagnostic::on_unimplemented(message = "this ain't fooing")]
|
|
trait Foo {}
|
|
struct NotFoo;
|
|
|
|
fn hello() -> impl !Foo {
|
|
//~^ ERROR the trait bound `NotFoo: !Foo` is not satisfied
|
|
NotFoo
|
|
}
|
|
|
|
fn main() {}
|