1 error[E0381]: used binding `chaenomeles` isn't initialized
2 --> $DIR/suggest-assign-rvalue.rs:14:11
5 | ----------- binding declared here but left uninitialized
6 LL | apple(chaenomeles);
7 | ^^^^^^^^^^^ `chaenomeles` used here but it isn't initialized
9 help: consider assigning a value
11 LL | let chaenomeles = 0;
14 error[E0381]: used binding `my_float` isn't initialized
15 --> $DIR/suggest-assign-rvalue.rs:23:30
17 LL | let my_float: f32;
18 | -------- binding declared here but left uninitialized
19 LL | println!("my_float: {}", my_float);
20 | ^^^^^^^^ `my_float` used here but it isn't initialized
22 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
23 help: consider assigning a value
25 LL | let my_float: f32 = 0.0;
28 error[E0381]: used binding `demo` isn't initialized
29 --> $DIR/suggest-assign-rvalue.rs:26:28
32 | ---- binding declared here but left uninitialized
33 LL | println!("demo: {:?}", demo);
34 | ^^^^ `demo` used here but it isn't initialized
36 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
37 help: consider assigning a value
39 LL | let demo: Demo = Default::default();
40 | ++++++++++++++++++++
42 error[E0381]: used binding `demo_no` isn't initialized
43 --> $DIR/suggest-assign-rvalue.rs:30:31
45 LL | let demo_no: DemoNoDef;
46 | ------- binding declared here but left uninitialized
47 LL | println!("demo_no: {:?}", demo_no);
48 | ^^^^^^^ `demo_no` used here but it isn't initialized
50 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
51 help: consider assigning a value
53 LL | let demo_no: DemoNoDef = todo!();
56 error[E0381]: used binding `arr` isn't initialized
57 --> $DIR/suggest-assign-rvalue.rs:34:27
59 LL | let arr: [i32; 5];
60 | --- binding declared here but left uninitialized
61 LL | println!("arr: {:?}", arr);
62 | ^^^ `arr` used here but it isn't initialized
64 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
65 help: consider assigning a value
67 LL | let arr: [i32; 5] = todo!();
70 error[E0381]: used binding `foo` isn't initialized
71 --> $DIR/suggest-assign-rvalue.rs:37:27
73 LL | let foo: Vec<&str>;
74 | --- binding declared here but left uninitialized
75 LL | println!("foo: {:?}", foo);
76 | ^^^ `foo` used here but it isn't initialized
78 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
79 help: consider assigning a value
81 LL | let foo: Vec<&str> = vec![];
84 error[E0381]: used binding `my_string` isn't initialized
85 --> $DIR/suggest-assign-rvalue.rs:41:31
87 LL | let my_string: String;
88 | --------- binding declared here but left uninitialized
89 LL | println!("my_string: {}", my_string);
90 | ^^^^^^^^^ `my_string` used here but it isn't initialized
92 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
93 help: consider assigning a value
95 LL | let my_string: String = Default::default();
96 | ++++++++++++++++++++
98 error[E0381]: used binding `my_int` isn't initialized
99 --> $DIR/suggest-assign-rvalue.rs:45:28
101 LL | let my_int: &i32;
102 | ------ binding declared here but left uninitialized
103 LL | println!("my_int: {}", *my_int);
104 | ^^^^^^^ `*my_int` used here but it isn't initialized
106 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
107 help: consider assigning a value
109 LL | let my_int: &i32 = todo!();
112 error[E0381]: used binding `hello` isn't initialized
113 --> $DIR/suggest-assign-rvalue.rs:49:27
115 LL | let hello: &str;
116 | ----- binding declared here but left uninitialized
117 LL | println!("hello: {}", hello);
118 | ^^^^^ `hello` used here but it isn't initialized
120 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
121 help: consider assigning a value
123 LL | let hello: &str = todo!();
126 error[E0381]: used binding `never` isn't initialized
127 --> $DIR/suggest-assign-rvalue.rs:53:27
130 | ----- binding declared here but left uninitialized
131 LL | println!("never: {}", never);
132 | ^^^^^ `never` used here but it isn't initialized
134 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
136 error: aborting due to 10 previous errors
138 For more information about this error, try `rustc --explain E0381`.