Bless new test output (new trait impls in lists of suggestions)
This commit is contained in:
parent
2808977e05
commit
dcc352f341
4 changed files with 26 additions and 14 deletions
|
@ -40,14 +40,14 @@ LL | type X = std::ops::Deref::Target;
|
|||
|
|
||||
help: use fully-qualified syntax
|
||||
|
|
||||
LL | type X = <ByteStr as Deref>::Target;
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LL | type X = <ByteString as Deref>::Target;
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LL | type X = <CString as Deref>::Target;
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LL | type X = <IoSlice<'_> as Deref>::Target;
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LL | type X = <IoSliceMut<'_> as Deref>::Target;
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LL | type X = <OsString as Deref>::Target;
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
and N other candidates
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
|
|
@ -32,13 +32,13 @@ LL | [5; Self::HOST_SIZE] == [6; 0]
|
|||
= help: the following other types implement trait `PartialEq<Rhs>`:
|
||||
`&[T]` implements `PartialEq<Vec<U, A>>`
|
||||
`&[T]` implements `PartialEq<[U; N]>`
|
||||
`&[u8; N]` implements `PartialEq<ByteStr>`
|
||||
`&[u8; N]` implements `PartialEq<ByteString>`
|
||||
`&[u8]` implements `PartialEq<ByteStr>`
|
||||
`&[u8]` implements `PartialEq<ByteString>`
|
||||
`&mut [T]` implements `PartialEq<Vec<U, A>>`
|
||||
`&mut [T]` implements `PartialEq<[U; N]>`
|
||||
`[T; N]` implements `PartialEq<&[U]>`
|
||||
`[T; N]` implements `PartialEq<&mut [U]>`
|
||||
`[T; N]` implements `PartialEq<[U; N]>`
|
||||
`[T; N]` implements `PartialEq<[U]>`
|
||||
and 3 others
|
||||
and 11 others
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
@ -6,11 +6,14 @@ LL | if String::from("a") == "a".try_into().unwrap() {}
|
|||
| |
|
||||
| type must be known at this point
|
||||
|
|
||||
= note: multiple `impl`s satisfying `String: PartialEq<_>` found in the `alloc` crate:
|
||||
- impl PartialEq for String;
|
||||
- impl<'a, 'b> PartialEq<&'a str> for String;
|
||||
- impl<'a, 'b> PartialEq<Cow<'a, str>> for String;
|
||||
- impl<'a, 'b> PartialEq<str> for String;
|
||||
= note: cannot satisfy `String: PartialEq<_>`
|
||||
= help: the following types implement trait `PartialEq<Rhs>`:
|
||||
`String` implements `PartialEq<&str>`
|
||||
`String` implements `PartialEq<ByteStr>`
|
||||
`String` implements `PartialEq<ByteString>`
|
||||
`String` implements `PartialEq<Cow<'_, str>>`
|
||||
`String` implements `PartialEq<str>`
|
||||
`String` implements `PartialEq`
|
||||
help: try using a fully qualified path to specify the expected types
|
||||
|
|
||||
LL | if String::from("a") == <&str as TryInto<T>>::try_into("a").unwrap() {}
|
||||
|
|
|
@ -15,6 +15,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -41,6 +42,7 @@ LL | |x| String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -57,6 +59,7 @@ LL | let _ = "x".as_ref();
|
|||
| ^ ------ type must be known at this point
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -83,6 +86,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -109,6 +113,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -135,6 +140,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -161,6 +167,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -187,6 +194,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
@ -213,6 +221,7 @@ LL | String::from("x".as_ref());
|
|||
| ^^^^^^
|
||||
|
|
||||
= note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
|
||||
- impl AsRef<ByteStr> for str;
|
||||
- impl AsRef<OsStr> for str;
|
||||
- impl AsRef<Path> for str;
|
||||
- impl AsRef<[u8]> for str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue