summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/never-assign-wrong-type.rs
blob: 67e26f5663f412ed5fd18167e7fcf3607ab82c43 (plain)
1
2
3
4
5
6
7
8
// Test that we can't use another type in place of !

#![feature(never_type)]
#![deny(warnings)]

fn main() {
    let x: ! = "hello"; //~ ERROR mismatched types
}