mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
97 lines
2.7 KiB
Plaintext
97 lines
2.7 KiB
Plaintext
error[E0412]: cannot find type `double` in this scope
|
|
--> $DIR/recommend-literal.rs:1:13
|
|
|
|
|
LL | type Real = double;
|
|
| ^^^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `f64`
|
|
|
|
error[E0412]: cannot find type `long` in this scope
|
|
--> $DIR/recommend-literal.rs:7:12
|
|
|
|
|
LL | let y: long = 74802374902374923;
|
|
| ^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `i64`
|
|
|
|
error[E0412]: cannot find type `Boolean` in this scope
|
|
--> $DIR/recommend-literal.rs:10:13
|
|
|
|
|
LL | let v1: Boolean = true;
|
|
| ^^^^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `bool`
|
|
|
|
error[E0412]: cannot find type `Bool` in this scope
|
|
--> $DIR/recommend-literal.rs:13:13
|
|
|
|
|
LL | let v2: Bool = true;
|
|
| ^^^^
|
|
|
|
|
help: a builtin type with a similar name exists
|
|
|
|
|
LL | let v2: bool = true;
|
|
| ~~~~
|
|
help: perhaps you intended to use this type
|
|
|
|
|
LL | let v2: bool = true;
|
|
| ~~~~
|
|
|
|
error[E0412]: cannot find type `boolean` in this scope
|
|
--> $DIR/recommend-literal.rs:19:9
|
|
|
|
|
LL | fn z(a: boolean) {
|
|
| ^^^^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `bool`
|
|
|
|
error[E0412]: cannot find type `byte` in this scope
|
|
--> $DIR/recommend-literal.rs:24:11
|
|
|
|
|
LL | fn a() -> byte {
|
|
| ^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `u8`
|
|
|
|
error[E0412]: cannot find type `float` in this scope
|
|
--> $DIR/recommend-literal.rs:31:12
|
|
|
|
|
LL | width: float,
|
|
| ^^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `f32`
|
|
|
|
error[E0412]: cannot find type `int` in this scope
|
|
--> $DIR/recommend-literal.rs:34:19
|
|
|
|
|
LL | depth: Option<int>,
|
|
| ^^^ not found in this scope
|
|
|
|
|
help: perhaps you intended to use this type
|
|
|
|
|
LL | depth: Option<i32>,
|
|
| ~~~
|
|
help: you might be missing a type parameter
|
|
|
|
|
LL | struct Data<int> {
|
|
| +++++
|
|
|
|
error[E0412]: cannot find type `short` in this scope
|
|
--> $DIR/recommend-literal.rs:40:16
|
|
|
|
|
LL | impl Stuff for short {}
|
|
| ^^^^^
|
|
| |
|
|
| not found in this scope
|
|
| help: perhaps you intended to use this type: `i16`
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0412`.
|