]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-6458-4.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / issues / issue-6458-4.rs
1 fn foo(b: bool) -> Result<bool,String> { //~ ERROR mismatched types
2     Err("bar".to_string());
3 }
4
5 fn main() {
6     foo(false);
7 }