Auto merge of #83050 - osa1:issue83048, r=matthewjasper
Run analyses before thir-tree dumps Fixes #83048
This commit is contained in:
commit
2e012ce681
4 changed files with 45 additions and 24 deletions
5
src/test/ui/issues/issue-83048.rs
Normal file
5
src/test/ui/issues/issue-83048.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// compile-flags: -Z unpretty=thir-tree
|
||||
|
||||
pub fn main() {
|
||||
break; //~ ERROR: `break` outside of a loop [E0268]
|
||||
}
|
||||
9
src/test/ui/issues/issue-83048.stderr
Normal file
9
src/test/ui/issues/issue-83048.stderr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
error[E0268]: `break` outside of a loop
|
||||
--> $DIR/issue-83048.rs:4:5
|
||||
|
|
||||
LL | break;
|
||||
| ^^^^^ cannot `break` outside of a loop
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0268`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue