1
Fork 0
rust/tests/ui/layout/unknown-when-ptr-metadata-is-DST.stderr
FedericoBruzzone cef97bce7b Add TooGeneric variant to LayoutError and emit Unknown one
- `check-pass` test for a MRE of #135020
- fail test for #135138
- switch to `TooGeneric` for checking CMSE fn signatures
- switch to `TooGeneric` for compute `SizeSkeleton` (for transmute)
- fix broken tests
2025-01-27 00:37:34 +01:00

9 lines
328 B
Text

error[E0080]: evaluation of constant value failed
--> $DIR/unknown-when-ptr-metadata-is-DST.rs:8:16
|
LL | [(); { let _a: Option<&str> = None; 0 }];
| ^^ the type `str` has an unknown layout
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.