summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/removed-syntax-box.stderr
blob: 46b891587d5a626e0f2d2e2f76b801054a7e08ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
error: `box_syntax` has been removed
  --> $DIR/removed-syntax-box.rs:9:13
   |
LL |     let _ = box ();
   |             ^^^^^^
   |
help: use `Box::new()` instead
   |
LL |     let _ = Box::new(());
   |             ~~~~~~~~~~~~

error: `box_syntax` has been removed
  --> $DIR/removed-syntax-box.rs:10:13
   |
LL |     let _ = box 1;
   |             ^^^^^
   |
help: use `Box::new()` instead
   |
LL |     let _ = Box::new(1);
   |             ~~~~~~~~~~~

error: `box_syntax` has been removed
  --> $DIR/removed-syntax-box.rs:11:13
   |
LL |     let _ = box T { a: 12, b: 18 };
   |             ^^^^^^^^^^^^^^^^^^^^^^
   |
help: use `Box::new()` instead
   |
LL |     let _ = Box::new(T { a: 12, b: 18 });
   |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: `box_syntax` has been removed
  --> $DIR/removed-syntax-box.rs:12:13
   |
LL |     let _ = box [5; 30];
   |             ^^^^^^^^^^^
   |
help: use `Box::new()` instead
   |
LL |     let _ = Box::new([5; 30]);
   |             ~~~~~~~~~~~~~~~~~

error: `box_syntax` has been removed
  --> $DIR/removed-syntax-box.rs:13:22
   |
LL |     let _: Box<()> = box ();
   |                      ^^^^^^
   |
help: use `Box::new()` instead
   |
LL |     let _: Box<()> = Box::new(());
   |                      ~~~~~~~~~~~~

error: aborting due to 5 previous errors