summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-6458-4.rs
blob: 054a5c15c3f8a37c472cb329c4534e77d1a08df1 (plain)
1
2
3
4
5
6
7
fn foo(b: bool) -> Result<bool,String> { //~ ERROR mismatched types
    Err("bar".to_string());
}

fn main() {
    foo(false);
}