Debian Codegraph @

third_party/rust/async-trait/tests/ui/consider-restricting.rs

raw
1 // https://github.com/rust-lang/rust/issues/93828
2
3 use async_trait::async_trait;
4
5 pub trait IntoUrl {}
6
7 #[async_trait]
8 pub trait ClientExt {
9 async fn publish<T: IntoUrl>(&self, url: T);
10 }
11
12 struct Client;
13
14 #[async_trait]
15 impl ClientExt for Client {
16 async fn publish<T: IntoUrl>(&self, url: T) {}
17 }
18
19 struct Client2;
20
21 #[async_trait]
22 impl ClientExt for Client2 {
23 async fn publish<T>(&self, url: T) {}
24 }
25
26 fn main() {}