summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/invalid-constant-in-args.rs
blob: fd259197d29826180f27a69064d34c602ba58fc3 (plain)
1
2
3
4
5
6
use std::cell::Cell;

fn main() {
    let _: Cell<&str, "a"> = Cell::new("");
    //~^ ERROR struct takes 1 generic argument but 2 generic arguments were supplied
}