]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-78372.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-78372.rs
CommitLineData
72b1a166
FG
1use std::ops::DispatchFromDyn; //~ ERROR use of unstable library feature 'dispatch_from_dyn'
2struct Smaht<T, MISC>(PhantomData); //~ ERROR cannot find type `PhantomData` in this scope
3impl<T> DispatchFromDyn<Smaht<U, MISC>> for T {} //~ ERROR cannot find type `U` in this scope
4//~^ ERROR cannot find type `MISC` in this scope
5//~| ERROR use of unstable library feature 'dispatch_from_dyn'
6//~| ERROR the trait `DispatchFromDyn` may only be implemented for a coercion between structures
7//~| ERROR type parameter `T` must be covered by another type when it appears before the first
8trait Foo: X<u32> {}
9trait X<T> {
10 fn foo(self: Smaht<Self, T>);
11}
12trait Marker {}
13impl Marker for dyn Foo {}
14fn main() {}