2023-04-07 05:25:56 +00:00
|
|
|
error[E0277]: `()` cannot be safely transmuted into `W<'_>` in the defining scope of `Context`
|
|
|
|
--> $DIR/region-infer.rs:20:5
|
|
|
|
|
|
|
|
|
LL | test();
|
2023-04-21 23:49:36 +00:00
|
|
|
| ^^^^ The size of `()` is smaller than the size of `W<'_>`
|
2023-04-07 05:25:56 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `test`
|
|
|
|
--> $DIR/region-infer.rs:11:12
|
|
|
|
|
|
|
|
|
LL | fn test<'a>()
|
|
|
|
| ---- required by a bound in this function
|
|
|
|
LL | where
|
|
|
|
LL | W<'a>: BikeshedIntrinsicFrom<
|
|
|
|
| ____________^
|
|
|
|
LL | | (),
|
|
|
|
LL | | Context,
|
|
|
|
LL | | { Assume { alignment: true, lifetimes: true, safety: true, validity: true } },
|
|
|
|
LL | | >,
|
|
|
|
| |_________^ required by this bound in `test`
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-04-07 05:25:56 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|