rust/tests/ui/enum/issue-67945-2.rs

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

9 lines
179 B
Rust
Raw Normal View History

2020-05-07 02:14:05 +09:00
#![feature(type_ascription)]
2020-11-17 11:44:21 +01:00
enum Bug<S> { //~ ERROR parameter `S` is never used
Var = type_ascribe!(0, S),
2020-11-17 11:44:21 +01:00
//~^ ERROR generic parameters may not be used
2020-05-07 02:14:05 +09:00
}
fn main() {}