2020-07-02 05:32:12 +00:00
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
pub fn f() -> String { //~ ERROR mismatched types
|
2016-04-03 20:10:21 +00:00
|
|
|
0u8;
|
2017-12-10 20:29:24 +00:00
|
|
|
"bla".to_string();
|
2016-04-03 20:10:21 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 05:32:12 +00:00
|
|
|
pub fn g() -> String { //~ ERROR mismatched types
|
2016-04-04 11:53:04 +00:00
|
|
|
"this won't work".to_string();
|
2017-12-10 20:29:24 +00:00
|
|
|
"removeme".to_string();
|
2016-04-04 11:53:04 +00:00
|
|
|
}
|
|
|
|
|
2021-10-14 18:28:28 +00:00
|
|
|
pub fn macro_tests() -> u32 { //~ ERROR mismatched types
|
|
|
|
macro_rules! mac {
|
|
|
|
() => (1);
|
|
|
|
}
|
|
|
|
mac!();
|
|
|
|
}
|
|
|
|
|
2016-04-03 20:10:21 +00:00
|
|
|
fn main() {}
|