summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-77982.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/issue-77982.stderr')
-rw-r--r--tests/ui/traits/issue-77982.stderr20
1 files changed, 5 insertions, 15 deletions
diff --git a/tests/ui/traits/issue-77982.stderr b/tests/ui/traits/issue-77982.stderr
index d4fea05fe..33cc186ac 100644
--- a/tests/ui/traits/issue-77982.stderr
+++ b/tests/ui/traits/issue-77982.stderr
@@ -35,23 +35,12 @@ help: consider specifying the generic argument
LL | opts.get::<Q>(opt.as_ref());
| +++++
-error[E0283]: type annotations needed
+error[E0282]: type annotations needed
--> $DIR/issue-77982.rs:13:59
|
LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect();
- | --------- ^^^^
- | |
- | required by a bound introduced by this call
- |
- = note: multiple `impl`s satisfying `u32: From<_>` found in the `core` crate:
- - impl From<Ipv4Addr> for u32;
- - impl From<NonZeroU32> for u32;
- - impl From<bool> for u32;
- - impl From<char> for u32;
- - impl From<u16> for u32;
- - impl From<u8> for u32;
- - impl<T> From<!> for T;
- - impl<T> From<T> for T;
+ | ^^^^
+ |
help: try using a fully qualified path to specify the expected types
|
LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(<u32 as Into<T>>::into(0u32))).collect();
@@ -95,4 +84,5 @@ LL | let _: Box<T> = (&()).bar();
error: aborting due to 5 previous errors
-For more information about this error, try `rustc --explain E0283`.
+Some errors have detailed explanations: E0282, E0283.
+For more information about an error, try `rustc --explain E0282`.