1
0
Fork 0
firefox/third_party/rust/async-trait/tests/ui/consider-restricting.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

26 lines
425 B
Rust

// https://github.com/rust-lang/rust/issues/93828
use async_trait::async_trait;
pub trait IntoUrl {}
#[async_trait]
pub trait ClientExt {
async fn publish<T: IntoUrl>(&self, url: T);
}
struct Client;
#[async_trait]
impl ClientExt for Client {
async fn publish<T: IntoUrl>(&self, url: T) {}
}
struct Client2;
#[async_trait]
impl ClientExt for Client2 {
async fn publish<T>(&self, url: T) {}
}
fn main() {}