summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/ascription/issue-34255-1.rs
blob: 7436f83593d34bd79bcb6ec88948057bcd8adfcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// rustfix

struct Reactor {
    input_cells: Vec<usize>,
}

impl Reactor {
    pub fn new() -> Self { //~ ERROR struct literal body without path
        input_cells: Vec::new()
    }
}

// This case isn't currently being handled gracefully, including for completeness.
fn main() {}