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

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