]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/ascription/issue-34255-1.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / type / ascription / issue-34255-1.rs
CommitLineData
416331ca
XL
1struct Reactor {
2 input_cells: Vec<usize>,
3}
4
5impl 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
fc512014 10 //~| ERROR wrong number of type arguments: expected at least 1, found 0
416331ca
XL
11 }
12}
13
14// This case isn't currently being handled gracefully, including for completeness.
e1599b0c 15fn main() {}