rust/tests/ui/traits/alias/impl.rs

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

8 lines
143 B
Rust
Raw Normal View History

#![feature(trait_alias)]
trait DefaultAlias = Default;
2018-11-27 17:56:36 +08:00
impl DefaultAlias for () {} //~ ERROR expected trait, found trait alias
fn main() {}