diff options
Diffstat (limited to 'tests/ui/traits/issue-59029-1.rs')
-rw-r--r-- | tests/ui/traits/issue-59029-1.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-59029-1.rs b/tests/ui/traits/issue-59029-1.rs new file mode 100644 index 000000000..8ab47a4af --- /dev/null +++ b/tests/ui/traits/issue-59029-1.rs @@ -0,0 +1,9 @@ +#![feature(trait_alias)] + +trait Svc<Req> { type Res; } + +trait MkSvc<Target, Req> = Svc<Target> where Self::Res: Svc<Req>; +//~^ ERROR associated type `Res` not found for `Self` +//~| ERROR associated type `Res` not found for `Self` + +fn main() {} |