You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ----- binding initialized here in some conditions
9
9
LL | println!("{}", i);
10
10
| ^ `i` used here but it is possibly-uninitialized
11
+
|
12
+
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/borrowck-break-uninit-2.stderr
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ LL | let x: isize;
7
7
LL | println!("{}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
+
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/borrowck-break-uninit.stderr
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ LL | let x: isize;
7
7
LL | println!("{}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
+
= 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)
| ----- binding initialized here in some conditions
9
9
LL | println!("{}", i);
10
10
| ^ `i` used here but it is possibly-uninitialized
11
+
|
12
+
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/borrowck-while-break.stderr
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ LL | while cond {
8
8
...
9
9
LL | println!("{}", v);
10
10
| ^ `v` used here but it is possibly-uninitialized
11
+
|
12
+
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/issue-24267-flow-exit.stderr
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ LL | loop { x = break; }
7
7
LL | println!("{}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
+
= 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)
10
11
help: consider assigning a value
11
12
|
12
13
LL | let x: i32 = 42;
@@ -21,6 +22,7 @@ LL | for _ in 0..10 { x = continue; }
21
22
LL | println!("{}", x);
22
23
| ^ `x` used here but it isn't initialized
23
24
|
25
+
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/issue-47646.stderr
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ LL | println!("{:?}", heap);
12
12
...
13
13
LL | };
14
14
| - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `(Option<std::collections::binary_heap::PeekMut<'_, i32>>, ())`
15
+
|
16
+
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/suggest-assign-rvalue.stderr
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ LL | let my_float: f32;
19
19
LL | println!("my_float: {}", my_float);
20
20
| ^^^^^^^^ `my_float` used here but it isn't initialized
21
21
|
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)
22
23
help: consider assigning a value
23
24
|
24
25
LL | let my_float: f32 = 3.14159;
@@ -32,6 +33,7 @@ LL | let demo: Demo;
32
33
LL | println!("demo: {:?}", demo);
33
34
| ^^^^ `demo` used here but it isn't initialized
34
35
|
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)
35
37
help: consider assigning a value
36
38
|
37
39
LL | let demo: Demo = Default::default();
@@ -45,6 +47,7 @@ LL | let demo_no: DemoNoDef;
45
47
LL | println!("demo_no: {:?}", demo_no);
46
48
| ^^^^^^^ `demo_no` used here but it isn't initialized
47
49
|
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)
48
51
help: consider assigning a value
49
52
|
50
53
LL | let demo_no: DemoNoDef = /* value */;
@@ -58,6 +61,7 @@ LL | let arr: [i32; 5];
58
61
LL | println!("arr: {:?}", arr);
59
62
| ^^^ `arr` used here but it isn't initialized
60
63
|
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)
61
65
help: consider assigning a value
62
66
|
63
67
LL | let arr: [i32; 5] = [42; 5];
@@ -71,6 +75,7 @@ LL | let foo: Vec<&str>;
71
75
LL | println!("foo: {:?}", foo);
72
76
| ^^^ `foo` used here but it isn't initialized
73
77
|
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)
74
79
help: consider assigning a value
75
80
|
76
81
LL | let foo: Vec<&str> = vec![];
@@ -84,6 +89,7 @@ LL | let my_string: String;
84
89
LL | println!("my_string: {}", my_string);
85
90
| ^^^^^^^^^ `my_string` used here but it isn't initialized
86
91
|
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)
87
93
help: consider assigning a value
88
94
|
89
95
LL | let my_string: String = Default::default();
@@ -97,6 +103,7 @@ LL | let my_int: &i32;
97
103
LL | println!("my_int: {}", *my_int);
98
104
| ^^^^^^^ `*my_int` used here but it isn't initialized
99
105
|
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)
100
107
help: consider assigning a value
101
108
|
102
109
LL | let my_int: &i32 = &42;
@@ -110,6 +117,7 @@ LL | let hello: &str;
110
117
LL | println!("hello: {}", hello);
111
118
| ^^^^^ `hello` used here but it isn't initialized
112
119
|
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)
113
121
help: consider assigning a value
114
122
|
115
123
LL | let hello: &str = "";
@@ -122,6 +130,8 @@ LL | let never: !;
122
130
| ----- binding declared here but left uninitialized
123
131
LL | println!("never: {}", never);
124
132
| ^^^^^ `never` used here but it isn't initialized
133
+
|
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)
Copy file name to clipboardExpand all lines: tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,8 @@ LL | println!("{}", arr[3]);
53
53
...
54
54
LL | c();
55
55
| - mutable borrow later used here
56
+
|
57
+
= 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)
56
58
57
59
error[E0502]: cannot borrow `arr` as immutable because it is also borrowed as mutable
0 commit comments