summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-40610.rs
blob: c01233605b57cbbfffada4bccdcf327012b87af9 (plain)
1
2
3
4
5
6
fn f(_: &[f32]) {}

fn main() {
    () + f(&[1.0]);
    //~^ ERROR cannot add `()` to `()`
}