mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00

``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
error: `box_syntax` has been removed
|
|
--> $DIR/removed-syntax-box.rs:9:13
|
|
|
|
|
LL | let _ = box ();
|
|
| ^^^^^^
|
|
|
|
|
help: use `Box::new()` instead
|
|
|
|
|
LL - let _ = box ();
|
|
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 1;
|
|
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 T { a: 12, b: 18 };
|
|
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 [5; 30];
|
|
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 ();
|
|
LL + let _: Box<()> = Box::new(());
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|