rust/src/test/ui/issues/issue-40610.rs
2018-12-25 21:08:33 -07:00

7 lines
121 B
Rust

fn f(_: &[f32]) {}
fn main() {
() + f(&[1.0]);
//~^ ERROR binary operation `+` cannot be applied to type `()`
}