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