summaryrefslogtreecommitdiffstats
path: root/src/test/ui/never_type/call-fn-never-arg-wrong-type.rs
blob: d06637e74a2f26b9da61b538f2f89c8d0eead623 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that we can't pass other types for !

#![feature(never_type)]

fn foo(x: !) -> ! {
    x
}

fn main() {
    foo("wow"); //~ ERROR mismatched types
}