diff options
| author | Ralf Jung <post@ralfj.de> | 2024-06-22 16:26:30 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-06-22 17:39:01 +0200 |
| commit | 763e3131cc05d9d9b036ce991cc948aefe2cb8ff (patch) | |
| tree | b728a78071c34b87cfbe991699344f9f83bc206b /tests/ui/sized/stack-overflow-trait-infer-98842.rs | |
| parent | d03d6c0fead582c98c6446ec92456ca8fd03ff65 (diff) | |
| download | rust-763e3131cc05d9d9b036ce991cc948aefe2cb8ff.tar.gz rust-763e3131cc05d9d9b036ce991cc948aefe2cb8ff.zip | |
don't ICE when encountering an extern type field during validation
Diffstat (limited to 'tests/ui/sized/stack-overflow-trait-infer-98842.rs')
| -rw-r--r-- | tests/ui/sized/stack-overflow-trait-infer-98842.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/sized/stack-overflow-trait-infer-98842.rs b/tests/ui/sized/stack-overflow-trait-infer-98842.rs index 54d50346cc8..be4807b2e4a 100644 --- a/tests/ui/sized/stack-overflow-trait-infer-98842.rs +++ b/tests/ui/sized/stack-overflow-trait-infer-98842.rs @@ -13,6 +13,6 @@ struct Foo(<&'static Foo as ::core::ops::Deref>::Target); // and it will infinitely recurse somewhere trying to figure out the // size of this pointer (is my guess): const _: *const Foo = 0 as _; -//~^ ERROR it is undefined behavior to use this value +//~^ ERROR evaluation of constant value failed pub fn main() {} |
