mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
4cecf42971
Signed-off-by: FedericoBruzzone <federico.bruzzone.i@gmail.com>
20 lines
351 B
Rust
20 lines
351 B
Rust
#[diagnostic::on_unimplemented(message = "my message", label = "my label", note = "my note")]
|
|
pub trait ProviderLt {}
|
|
|
|
pub trait ProviderExt {
|
|
fn request<R>(&self) {
|
|
todo!()
|
|
}
|
|
}
|
|
|
|
impl<T: ?Sized + ProviderLt> ProviderExt for T {}
|
|
|
|
struct B;
|
|
|
|
fn main() {
|
|
B.request();
|
|
//~^ my message [E0599]
|
|
//~| my label
|
|
//~| my note
|
|
}
|