]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/nested-return-type3.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / impl-trait / nested-return-type3.rs
CommitLineData
5e7ed085
FG
1// check-pass
2
3trait Duh {}
4
5impl Duh for i32 {}
6
7trait Trait {
8 type Assoc: Duh;
9}
10
11impl<F: Duh> Trait for F {
12 type Assoc = F;
13}
14
15fn foo() -> impl Trait<Assoc = impl Send> {
2b03887a 16 //~^ WARN opaque type `impl Trait<Assoc = impl Send>` does not satisfy its associated type bounds
5e7ed085
FG
17 42
18}
19
20fn main() {
21}