rust/tests/ui/auto-traits/issue-117789.rs

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

6 lines
176 B
Rust
Raw Normal View History

2023-11-13 00:36:12 +00:00
auto trait Trait<P> {} //~ ERROR auto traits cannot have generic parameters
//~^ ERROR auto traits are experimental and possibly buggy
impl<P> Trait<P> for () {}
fn main() {}