further update fuzzy_match_tys
This commit is contained in:
parent
0efc6c02cb
commit
f2aea1ea6e
25 changed files with 111 additions and 66 deletions
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type U = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `X`
|
||||
--> $DIR/hr-associated-type-bound-1.rs:3:33
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type V = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `Y`
|
||||
--> $DIR/hr-associated-type-bound-param-1.rs:4:36
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | T: Z<'a, u16>,
|
||||
| ^^^^^^^^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `Z`
|
||||
--> $DIR/hr-associated-type-bound-param-2.rs:6:35
|
||||
|
|
||||
|
|
@ -19,6 +21,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | T: Z<'a, u16>,
|
||||
| ^^^^^^^^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `Z`
|
||||
--> $DIR/hr-associated-type-bound-param-2.rs:6:35
|
||||
|
|
||||
|
|
@ -34,6 +38,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type W = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `Z`
|
||||
--> $DIR/hr-associated-type-bound-param-2.rs:6:35
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type U = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `X`
|
||||
--> $DIR/hr-associated-type-bound-param-3.rs:4:33
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type U = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `X`
|
||||
--> $DIR/hr-associated-type-bound-param-4.rs:4:36
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type U = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `X`
|
||||
--> $DIR/hr-associated-type-bound-param-5.rs:17:45
|
||||
|
|
||||
|
|
@ -19,6 +21,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | type U = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `X`
|
||||
--> $DIR/hr-associated-type-bound-param-5.rs:17:45
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `{integer}: Scalar` is not satisfied
|
|||
LL | b + 3
|
||||
| ^ the trait `Scalar` is not implemented for `{integer}`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<f64 as Scalar>
|
||||
note: required because of the requirements on the impl of `Add<{integer}>` for `Bob`
|
||||
--> $DIR/issue-22645.rs:8:19
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ error[E0277]: the trait bound `f32: Foo` is not satisfied
|
|||
LL | gimme::<f32>();
|
||||
| ^^^ the trait `Foo` is not implemented for `f32`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<i32 as Foo>
|
||||
<u32 as Foo>
|
||||
note: required by a bound in `gimme`
|
||||
--> $DIR/chalk_initial_program.rs:9:13
|
||||
|
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ error[E0277]: the trait bound `f32: Foo` is not satisfied
|
|||
LL | impl Baz<f32> for f32 { }
|
||||
| ^^^^^^^^ the trait `Foo` is not implemented for `f32`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<i32 as Foo>
|
||||
note: required by a bound in `Baz`
|
||||
--> $DIR/impl_wf.rs:18:31
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `f32: Foo` is not satisfied
|
|||
LL | type Item = f32;
|
||||
| ^^^ the trait `Foo` is not implemented for `f32`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<i32 as Foo>
|
||||
note: required by a bound in `Bar::Item`
|
||||
--> $DIR/impl_wf_2.rs:8:16
|
||||
|
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@ LL | only_bar(x);
|
|||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<i32 as Bar>
|
||||
<u32 as Bar>
|
||||
note: required by a bound in `only_bar`
|
||||
--> $DIR/type_inference.rs:12:16
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `{float}: Foo` is not satisfied
|
|||
LL | let s = S {
|
||||
| ^ the trait `Foo` is not implemented for `{float}`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<i32 as Foo>
|
||||
note: required by a bound in `S`
|
||||
--> $DIR/type_wf.rs:6:13
|
||||
|
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ LL | assert_copy::<&'static mut isize>();
|
|||
| ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'static mut isize`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&T as Copy>
|
||||
<*const T as Copy>
|
||||
<*mut T as Copy>
|
||||
<isize as Copy>
|
||||
<f32 as Copy>
|
||||
<f64 as Copy>
|
||||
<i128 as Copy>
|
||||
and 11 others
|
||||
and 10 others
|
||||
note: required by a bound in `assert_copy`
|
||||
--> $DIR/kindck-copy.rs:5:18
|
||||
|
|
||||
|
|
@ -23,11 +23,11 @@ LL | assert_copy::<&'a mut isize>();
|
|||
| ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut isize`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&T as Copy>
|
||||
<*const T as Copy>
|
||||
<*mut T as Copy>
|
||||
<isize as Copy>
|
||||
<f32 as Copy>
|
||||
<f64 as Copy>
|
||||
<i128 as Copy>
|
||||
and 11 others
|
||||
and 10 others
|
||||
note: required by a bound in `assert_copy`
|
||||
--> $DIR/kindck-copy.rs:5:18
|
||||
|
|
||||
|
|
@ -112,10 +112,6 @@ error[E0277]: the trait bound `&'a mut (dyn Dummy + Send + 'a): Copy` is not sat
|
|||
LL | assert_copy::<&'a mut (dyn Dummy + Send)>();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut (dyn Dummy + Send + 'a)`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&T as Copy>
|
||||
<*const T as Copy>
|
||||
<*mut T as Copy>
|
||||
note: required by a bound in `assert_copy`
|
||||
--> $DIR/kindck-copy.rs:5:18
|
||||
|
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | default type U = str;
|
||||
| ^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `X::U`
|
||||
--> $DIR/default-associated-type-bound-1.rs:8:13
|
||||
|
|
||||
|
|
|
|||
|
|
@ -7,6 +7,12 @@ LL | foo(String::new());
|
|||
| required by a bound introduced by this call
|
||||
|
|
||||
= note: to coerce a `String` into a `&str`, use `&*` as a prefix
|
||||
= help: the following implementations were found:
|
||||
<String as From<&String>>
|
||||
<String as From<&mut str>>
|
||||
<String as From<&str>>
|
||||
<String as From<Box<str>>>
|
||||
and 2 others
|
||||
= note: required because of the requirements on the impl of `Into<&str>` for `String`
|
||||
note: required by a bound in `foo`
|
||||
--> $DIR/into-str.rs:1:31
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ LL | bar(a);
|
|||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&f32 as Tr>
|
||||
note: required by a bound in `bar`
|
||||
--> $DIR/issue-84973-negative.rs:5:11
|
||||
|
|
||||
|
|
|
|||
|
|
@ -6,12 +6,6 @@ LL | let fp = BufWriter::new(fp);
|
|||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&'a UnixStream as std::io::Write>
|
||||
<&ChildStdin as std::io::Write>
|
||||
<&File as std::io::Write>
|
||||
<&Sink as std::io::Write>
|
||||
and 5 others
|
||||
= note: `std::io::Write` is implemented for `&mut dyn std::io::Write`, but not for `&dyn std::io::Write`
|
||||
note: required by a bound in `BufWriter::<W>::new`
|
||||
--> $SRC_DIR/std/src/io/buffered/bufwriter.rs:LL:COL
|
||||
|
|
@ -25,12 +19,6 @@ error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satis
|
|||
LL | let fp = BufWriter::new(fp);
|
||||
| ^^^^^^^^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&'a UnixStream as std::io::Write>
|
||||
<&ChildStdin as std::io::Write>
|
||||
<&File as std::io::Write>
|
||||
<&Sink as std::io::Write>
|
||||
and 5 others
|
||||
= note: `std::io::Write` is implemented for `&mut dyn std::io::Write`, but not for `&dyn std::io::Write`
|
||||
note: required by a bound in `BufWriter`
|
||||
--> $SRC_DIR/std/src/io/buffered/bufwriter.rs:LL:COL
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | f::<dyn X<Y = str>>();
|
||||
| ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `f`
|
||||
--> $DIR/check-trait-object-bounds-1.rs:7:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ error[E0277]: the trait bound `str: Clone` is not satisfied
|
|||
LL | f::<dyn X<Y = str>>();
|
||||
| ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<String as Clone>
|
||||
note: required by a bound in `f`
|
||||
--> $DIR/check-trait-object-bounds-4.rs:10:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ LL | opts.get(<String as AsRef<[u8]>>::as_ref(opt));
|
|||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
LL | opts.get(<String as AsRef<str>>::as_ref(opt));
|
||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
and 4 other candidates
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-77982.rs:13:44
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ LL | foo(&baz);
|
|||
| | help: consider adding dereference here: `&***baz`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&LDM as Happy>
|
||||
note: required by a bound in `foo`
|
||||
--> $DIR/multiple-0.rs:30:26
|
||||
|
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ LL | foo(&mut baz);
|
|||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&mut LDM as Happy>
|
||||
note: required by a bound in `foo`
|
||||
--> $DIR/multiple-1.rs:45:26
|
||||
|
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ LL | Ok(Err(123_i32)?)
|
|||
= help: the following implementations were found:
|
||||
<u8 as From<NonZeroU8>>
|
||||
<u8 as From<bool>>
|
||||
<i128 as From<NonZeroI128>>
|
||||
<i128 as From<bool>>
|
||||
and 60 others
|
||||
<f32 as From<i16>>
|
||||
<f32 as From<i8>>
|
||||
and 71 others
|
||||
= note: required because of the requirements on the impl of `FromResidual<Result<Infallible, i32>>` for `Result<u64, u8>`
|
||||
|
||||
error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue