diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-11-17 22:33:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-17 22:33:21 +0100 |
| commit | 58292874e1287bd3c3fdb63924c0367128748a4d (patch) | |
| tree | 5aafd6f967e20abe2995145287e17345015f8c5a /src | |
| parent | 43fa2918d1e4dfd90f83ce46aac8373ae8120068 (diff) | |
| parent | 9c2d4dd529a41f919765d1ca29613dc63033f30b (diff) | |
Rollup merge of #104515 - chenyukang:yukang/fix-104510-ice, r=compiler-errors
ICE fixing, remove is_tainted_by_errors since we have ty_error for delay bug Fixes #104510
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/typeck/issue-104510-ice.rs | 16 | ||||
| -rw-r--r-- | src/test/ui/typeck/issue-104510-ice.stderr | 9 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/test/ui/typeck/issue-104510-ice.rs b/src/test/ui/typeck/issue-104510-ice.rs new file mode 100644 index 00000000000..157bdf07e38 --- /dev/null +++ b/src/test/ui/typeck/issue-104510-ice.rs @@ -0,0 +1,16 @@ +// needs-asm-support +// only-x86_64 + +struct W<T: ?Sized>(Oops); +//~^ ERROR cannot find type `Oops` in this scope + +unsafe fn test() { + let j = W(()); + let pointer = &j as *const _; + core::arch::asm!( + "nop", + in("eax") pointer, + ); +} + +fn main() {} diff --git a/src/test/ui/typeck/issue-104510-ice.stderr b/src/test/ui/typeck/issue-104510-ice.stderr new file mode 100644 index 00000000000..ddb510ef047 --- /dev/null +++ b/src/test/ui/typeck/issue-104510-ice.stderr @@ -0,0 +1,9 @@ +error[E0412]: cannot find type `Oops` in this scope + --> $DIR/issue-104510-ice.rs:4:21 + | +LL | struct W<T: ?Sized>(Oops); + | ^^^^ not found in this scope + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0412`. |
