blob: 5f2a705ed564a4a2ba1e2aa0d66ae8d1b096b333 [file] [log] [blame]
//@ reference: attributes.diagnostic.on_unimplemented.intro
#![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() {}