]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/trait-alias/trait-alias-maybe-bound.rs
1 // build-pass (FIXME(62277): could be check-pass?)
3 // Test that `dyn ... + ?Sized + ...` resulting from the expansion of trait aliases is okay.
5 #![feature(trait_alias)]
11 // Nest a couple of levels deep:
15 // Straight list expansion:
16 type _T0
= dyn _1
+ Foo
;
18 // In second position:
19 type _T1
= dyn Foo
+ _1
;
21 // ... and with an auto trait:
22 type _T2
= dyn Foo
+ Send
+ _1
;
27 type _T3
= dyn _2
+ Foo
;