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
|
2022-11-19 22:11:00 +01:00
|
|
|
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() {}
|