]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issue-6458-4.stderr
New upstream version 1.29.0+dfsg1
[rustc.git] / src / test / ui / issue-6458-4.stderr
CommitLineData
ff7c6d11
XL
1error[E0308]: mismatched types
2 --> $DIR/issue-6458-4.rs:11:40
3 |
0531ce1d 4LL | fn foo(b: bool) -> Result<bool,String> { //~ ERROR mismatched types
ff7c6d11 5 | ________________________________________^
0531ce1d 6LL | | Err("bar".to_string());
ff7c6d11 7 | | - help: consider removing this semicolon
0531ce1d 8LL | | }
ff7c6d11
XL
9 | |_^ expected enum `std::result::Result`, found ()
10 |
11 = note: expected type `std::result::Result<bool, std::string::String>`
12 found type `()`
13
14error: aborting due to previous error
15
0531ce1d 16For more information about this error, try `rustc --explain E0308`.