Skip to content

Commit d8e6b81

Browse files
committed
update error messages in ui tests
1 parent 30d787a commit d8e6b81

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/ui/resolve/issue-50599.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ LL | const M: usize = (f64::from(N) * std::f64::LOG10_2) as usize;
66
|
77
help: consider importing one of these items
88
|
9+
LL + use std::f128::consts::LOG10_2;
10+
|
11+
LL + use std::f16::consts::LOG10_2;
12+
|
913
LL + use std::f32::consts::LOG10_2;
1014
|
1115
LL + use std::f64::consts::LOG10_2;

tests/ui/resolve/issue-73427.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ LL | (E::TupleWithFields(/* fields */)).foo();
107107
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108108
help: consider importing one of these items instead
109109
|
110+
LL + use std::f128::consts::E;
111+
|
112+
LL + use std::f16::consts::E;
113+
|
110114
LL + use std::f32::consts::E;
111115
|
112116
LL + use std::f64::consts::E;

tests/ui/resolve/privacy-enum-ctor.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ LL | let _: E = m::f;
8484
| ~
8585
help: consider importing one of these items instead
8686
|
87+
LL + use std::f128::consts::E;
88+
|
89+
LL + use std::f16::consts::E;
90+
|
8791
LL + use std::f32::consts::E;
8892
|
8993
LL + use std::f64::consts::E;
@@ -121,6 +125,10 @@ LL | let _: E = (E::Fn(/* fields */));
121125
| ~~~~~~~~~~~~~~~~~~~~~
122126
help: consider importing one of these items instead
123127
|
128+
LL + use std::f128::consts::E;
129+
|
130+
LL + use std::f16::consts::E;
131+
|
124132
LL + use std::f32::consts::E;
125133
|
126134
LL + use std::f64::consts::E;

0 commit comments

Comments
 (0)