]> git.proxmox.com Git - rustc.git/blame - src/test/ui/repr/issue-83921-pretty.rs
Update (un)suspicious files
[rustc.git] / src / test / ui / repr / issue-83921-pretty.rs
CommitLineData
136023e0
XL
1// Regression test for #83921. A `delay_span_bug()` call was issued, but the
2// error was never reported because the pass responsible for detecting and
3// reporting the error does not run in certain modes of pretty-printing.
4
5// Make sure the error is reported if we do not just pretty-print:
6// revisions: pretty normal
7// [pretty]compile-flags: -Zunpretty=everybody_loops
8// [pretty]check-pass
9
10#[repr("C")]
11//[normal]~^ ERROR: meta item in `repr` must be an identifier [E0565]
12struct A {}
13
14fn main() {}