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