2021-07-02 08:02:11 +09:00
|
|
|
error[E0277]: the trait bound `(): _Contains<&C>` is not satisfied
|
2021-10-22 13:49:12 -07:00
|
|
|
--> $DIR/issue-85848.rs:24:29
|
2021-07-02 08:02:11 +09:00
|
|
|
|
|
|
|
|
LL | writes_to_specific_path(&cap);
|
2021-10-22 13:49:12 -07:00
|
|
|
| ----------------------- ^^^^ the trait `_Contains<&C>` is not implemented for `()`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-02 08:02:11 +09:00
|
|
|
|
|
2022-03-26 21:26:02 +00:00
|
|
|
= help: the trait `Delegates<U>` is implemented for `T`
|
2022-08-15 21:31:37 +01:00
|
|
|
note: required for `&C` to implement `Contains<(), true>`
|
2021-07-02 08:02:11 +09:00
|
|
|
--> $DIR/issue-85848.rs:21:12
|
|
|
|
|
|
|
|
|
LL | impl<T, U> Contains<T, { contains::<T, U>() }> for U where T: _Contains<U> {}
|
2023-01-11 03:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ------------ unsatisfied trait bound introduced here
|
2022-08-15 21:31:37 +01:00
|
|
|
note: required for `&C` to implement `Delegates<()>`
|
2021-07-02 08:02:11 +09:00
|
|
|
--> $DIR/issue-85848.rs:12:12
|
|
|
|
|
|
|
|
|
LL | impl<T, U> Delegates<U> for T where T: Contains<U, true> {}
|
2023-01-11 03:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^ ^ ----------------- unsatisfied trait bound introduced here
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `writes_to_specific_path`
|
2022-05-01 11:03:14 +02:00
|
|
|
--> $DIR/issue-85848.rs:30:31
|
2021-07-31 09:26:55 -07:00
|
|
|
|
|
|
|
|
LL | fn writes_to_specific_path<C: Delegates<()>>(cap: &C) {}
|
|
|
|
| ^^^^^^^^^^^^^ required by this bound in `writes_to_specific_path`
|
2021-07-02 08:02:11 +09:00
|
|
|
|
|
|
|
error: unconstrained generic constant
|
2021-10-22 13:49:12 -07:00
|
|
|
--> $DIR/issue-85848.rs:24:29
|
2021-07-02 08:02:11 +09:00
|
|
|
|
|
|
|
|
LL | writes_to_specific_path(&cap);
|
2021-10-22 13:49:12 -07:00
|
|
|
| ----------------------- ^^^^
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-02 08:02:11 +09:00
|
|
|
|
|
|
|
|
= help: try adding a `where` bound using this expression: `where [(); { contains::<T, U>() }]:`
|
2022-08-15 21:31:37 +01:00
|
|
|
note: required for `&C` to implement `Contains<(), true>`
|
2021-07-02 08:02:11 +09:00
|
|
|
--> $DIR/issue-85848.rs:21:12
|
|
|
|
|
|
|
|
|
LL | impl<T, U> Contains<T, { contains::<T, U>() }> for U where T: _Contains<U> {}
|
2023-01-11 03:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^----------------------^ ^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2022-08-15 21:31:37 +01:00
|
|
|
note: required for `&C` to implement `Delegates<()>`
|
2021-07-02 08:02:11 +09:00
|
|
|
--> $DIR/issue-85848.rs:12:12
|
|
|
|
|
|
|
|
|
LL | impl<T, U> Delegates<U> for T where T: Contains<U, true> {}
|
2023-01-11 03:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^ ^ ----------------- unsatisfied trait bound introduced here
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `writes_to_specific_path`
|
2022-05-01 11:03:14 +02:00
|
|
|
--> $DIR/issue-85848.rs:30:31
|
2021-07-31 09:26:55 -07:00
|
|
|
|
|
|
|
|
LL | fn writes_to_specific_path<C: Delegates<()>>(cap: &C) {}
|
|
|
|
| ^^^^^^^^^^^^^ required by this bound in `writes_to_specific_path`
|
2021-07-02 08:02:11 +09:00
|
|
|
|
2022-05-01 11:03:14 +02:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-85848.rs:24:5
|
|
|
|
|
|
|
|
|
LL | writes_to_specific_path(&cap);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `true`, found `{ contains::<T, U>() }`
|
|
|
|
|
|
2022-08-12 02:00:37 +00:00
|
|
|
= note: expected constant `true`
|
|
|
|
found constant `{ contains::<T, U>() }`
|
2022-05-01 11:03:14 +02:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2021-07-02 08:02:11 +09:00
|
|
|
|
2022-05-01 11:03:14 +02:00
|
|
|
Some errors have detailed explanations: E0277, E0308.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|