summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum/issue-67945-2.rs
blob: 2eb123b7328dafde8d7a46c39bf6dce264e4ec8f (plain)
1
2
3
4
5
6
7
8
#![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() {}