]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6458-4.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-6458-4.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-6458-4.rs:11:40
3    |
4 LL |   fn foo(b: bool) -> Result<bool,String> { //~ ERROR mismatched types
5    |  ________________________________________^
6 LL | |     Err("bar".to_string());
7    | |                           - help: consider removing this semicolon
8 LL | | }
9    | |_^ expected enum `std::result::Result`, found ()
10    |
11    = note: expected type `std::result::Result<bool, std::string::String>`
12               found type `()`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.