2016-10-26 02:28:20 +03:00
|
|
|
fn f() -> String { //~ ERROR mismatched types
|
2016-04-03 22:10:21 +02:00
|
|
|
0u8;
|
2017-12-10 23:29:24 +03:00
|
|
|
"bla".to_string();
|
2016-04-03 22:10:21 +02:00
|
|
|
}
|
|
|
|
|
2016-10-26 02:28:20 +03:00
|
|
|
fn g() -> String { //~ ERROR mismatched types
|
2016-04-04 13:53:04 +02:00
|
|
|
"this won't work".to_string();
|
2017-12-10 23:29:24 +03:00
|
|
|
"removeme".to_string();
|
2016-04-04 13:53:04 +02:00
|
|
|
}
|
|
|
|
|
2016-04-03 22:10:21 +02:00
|
|
|
fn main() {}
|