]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/issue-83921-pretty.pretty.stdout
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / ui / repr / issue-83921-pretty.pretty.stdout
1 #![feature(prelude_import)]
2 #![no_std]
3 #[prelude_import]
4 use ::std::prelude::rust_2015::*;
5 #[macro_use]
6 extern crate std;
7 // Regression test for #83921. A `delay_span_bug()` call was issued, but the
8 // error was never reported because the pass responsible for detecting and
9 // reporting the error does not run in certain modes of pretty-printing.
10
11 // Make sure the error is reported if we do not just pretty-print:
12 // revisions: pretty normal
13 // [pretty]compile-flags: -Zunpretty=everybody_loops
14 // [pretty]check-pass
15 #[repr("C")]
16 struct A {
17 }
18
19 fn main() { loop { } }