]> git.lizzy.rs Git - rust.git/blob - src/test/ui/transmutability/issue-101739-2.stderr
Rollup merge of #102624 - notriddle:notriddle/summary-before, r=GuillaumeGomez
[rust.git] / src / test / ui / transmutability / issue-101739-2.stderr
1 error[E0107]: this trait takes at most 3 generic arguments but 6 generic arguments were supplied
2   --> $DIR/issue-101739-2.rs:18:14
3    |
4 LL |           Dst: BikeshedIntrinsicFrom<
5    |                ^^^^^^^^^^^^^^^^^^^^^ expected at most 3 generic arguments
6 ...
7 LL | /             ASSUME_LIFETIMES,
8 LL | |             ASSUME_VALIDITY,
9 LL | |             ASSUME_VISIBILITY,
10    | |_____________________________- help: remove these generic arguments
11    |
12 note: trait defined here, with at most 3 generic parameters: `Src`, `Context`, `ASSUME`
13   --> $SRC_DIR/core/src/mem/transmutability.rs:LL:COL
14    |
15 LL | pub unsafe trait BikeshedIntrinsicFrom<Src, Context, const ASSUME: Assume = { Assume::NOTHING }>
16    |                  ^^^^^^^^^^^^^^^^^^^^^ ---  -------  ------------------------------------------
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0107`.