fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
810 B34 linesraw
1error: `#[rustc_box]` attribute used incorrectly
2  --> $DIR/rustc-box.rs:10:5
3   |
4LL |     Box::pin(1);
5   |     ^^^^^^^^^^^
6   |
7   = note: `#[rustc_box]` may only be applied to a `Box::new()` call
8
9error: `#[rustc_box]` attribute used incorrectly
10  --> $DIR/rustc-box.rs:12:5
11   |
12LL |     foo(1, 1);
13   |     ^^^^^^^^^
14   |
15   = note: `#[rustc_box]` may only be applied to a `Box::new()` call
16
17error: `#[rustc_box]` attribute used incorrectly
18  --> $DIR/rustc-box.rs:14:5
19   |
20LL |     bar(1);
21   |     ^^^^^^
22   |
23   = note: `#[rustc_box]` may only be applied to a `Box::new()` call
24
25error: `#[rustc_box]` attribute used incorrectly
26  --> $DIR/rustc-box.rs:15:5
27   |
28LL |     #[rustc_box]
29   |     ^^^^^^^^^^^^
30   |
31   = note: no other attributes may be applied
32
33error: aborting due to 4 previous errors
34