rust/src/test/ui/traits/alias/self-in-generics.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
187 B
Rust
Raw Normal View History

2022-08-07 20:02:02 +00:00
#![feature(trait_alias)]
pub trait SelfInput = Fn(&mut Self);
pub fn f(_f: &dyn SelfInput) {}
//~^ ERROR the trait alias `SelfInput` cannot be made into an object [E0038]
fn main() {}