about summary refs log tree commit diff
path: root/tests/ui/suggestions/type-ascription-instead-of-path-2.fixed
blob: d432c5db6836c018d5b19efbee2ea25b07a7846a (plain)
1
2
3
4
5
6
//@ run-rustfix
fn main() -> Result<(), ()> {
    let _ = vec![Ok(2)].into_iter().collect::<Result<Vec<_>,_>>()?;
    //~^ ERROR expected one of
    Ok(())
}