rust/tests/ui/parser/issues/issue-89388.rs

8 lines
192 B
Rust
Raw Normal View History

// Regression test for #89388.
fn main() {
let option: Option<&[u8]> = Some(b"...");
let _ = option.map([_]::to_vec);
//~^ ERROR: missing angle brackets in associated item path
}