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

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

9 lines
164 B
Rust
Raw Normal View History

2020-11-17 10:44:21 +00:00
enum Bug<S> { //~ ERROR parameter `S` is never used
2020-05-06 17:14:05 +00:00
Var = {
2020-11-17 10:44:21 +00:00
let x: S = 0; //~ ERROR generic parameters may not be used
2020-05-06 17:14:05 +00:00
0
},
}
fn main() {}