rust/src/test/ui/enum/issue-67945-2.rs
Nilstrieb 2c7d32b4f4
Use type_ascribe! in many UI tests
Use it in all UI tests that are about the semantics and not the syntax
of type ascription.
2022-11-19 22:16:42 +01:00

8 lines
179 B
Rust

#![feature(type_ascription)]
enum Bug<S> { //~ ERROR parameter `S` is never used
Var = type_ascribe!(0, S),
//~^ ERROR generic parameters may not be used
}
fn main() {}