]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/alias/generic-default-in-dyn.rs
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / ui / traits / alias / generic-default-in-dyn.rs
1 trait SendEqAlias<T> = PartialEq;
2 //~^ ERROR trait aliases are experimental
3
4 struct Foo<T>(dyn SendEqAlias<T>);
5 //~^ ERROR the type parameter `Rhs` must be explicitly specified [E0393]
6
7 struct Bar<T>(dyn SendEqAlias<T>, T);
8 //~^ ERROR the type parameter `Rhs` must be explicitly specified [E0393]
9
10 fn main() {}