]>
git.proxmox.com Git - rustc.git/blob - tests/ui/save-analysis/issue-89066.rs
1 // compile-flags: -Zsave-analysis
3 // Check that this does not ICE.
4 // Stolen from tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs
6 #![feature(generic_arg_infer)]
8 struct All
<'a
, T
, const N
: usize> {
13 //~^ ERROR expected identifier
14 //~| ERROR parameter `_` is never used
16 fn all_fn
<'a
, T
, const N
: usize>() {}
18 fn bad_infer_fn
<_
>() {}
19 //~^ ERROR expected identifier
24 //~^ ERROR this struct takes 2 generic arguments but 3 generic arguments were supplied
27 let v
: [u8; 10] = [0; _
];