]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-1362.rs
Rollup merge of #106865 - GuillaumeGomez:add-gui-test-explanation, r=notriddle
[rust.git] / tests / ui / issues / issue-1362.rs
1 // Regression test for issue #1362 - without that fix the span will be bogus
2 // no-reformat
3 fn main() {
4   let x: u32 = 20i32; //~ ERROR mismatched types
5 }
6 // NOTE: Do not add any extra lines as the line number the error is
7 // on is significant; an error later in the source file might not
8 // trigger the bug.