Skip to content

Commit

Permalink
update error messages in ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tspiteri committed Apr 29, 2024
1 parent e9ff113 commit 37bec59
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ui/resolve/issue-50599.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ LL | const M: usize = (f64::from(N) * std::f64::LOG10_2) as usize;
|
help: consider importing one of these items
|
LL + use std::f128::consts::LOG10_2;
|
LL + use std::f16::consts::LOG10_2;
|
LL + use std::f32::consts::LOG10_2;
|
LL + use std::f64::consts::LOG10_2;
Expand Down
4 changes: 4 additions & 0 deletions tests/ui/resolve/issue-73427.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ LL | (E::TupleWithFields(/* fields */)).foo();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: consider importing one of these items instead
|
LL + use std::f128::consts::E;
|
LL + use std::f16::consts::E;
|
LL + use std::f32::consts::E;
|
LL + use std::f64::consts::E;
Expand Down
8 changes: 8 additions & 0 deletions tests/ui/resolve/privacy-enum-ctor.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ LL | let _: E = m::f;
| ~
help: consider importing one of these items instead
|
LL + use std::f128::consts::E;
|
LL + use std::f16::consts::E;
|
LL + use std::f32::consts::E;
|
LL + use std::f64::consts::E;
Expand Down Expand Up @@ -121,6 +125,10 @@ LL | let _: E = (E::Fn(/* fields */));
| ~~~~~~~~~~~~~~~~~~~~~
help: consider importing one of these items instead
|
LL + use std::f128::consts::E;
|
LL + use std::f16::consts::E;
|
LL + use std::f32::consts::E;
|
LL + use std::f64::consts::E;
Expand Down

0 comments on commit 37bec59

Please sign in to comment.