]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type/ascription/issue-34255-1.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / type / ascription / issue-34255-1.rs
1 struct Reactor {
2 input_cells: Vec<usize>,
3 }
4
5 impl Reactor {
6 pub fn new() -> Self {
7 input_cells: Vec::new()
8 //~^ ERROR cannot find value `input_cells` in this scope
9 //~| ERROR parenthesized type parameters may only be used with a `Fn` trait
10 //~| ERROR missing generics for struct `Vec`
11 }
12 }
13
14 // This case isn't currently being handled gracefully, including for completeness.
15 fn main() {}