2018-07-15 16:11:54 -05:00
|
|
|
error[E0282]: type annotations needed
|
2022-07-01 08:49:05 -05:00
|
|
|
--> $DIR/issue-24013.rs:5:13
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {swap::<&mut _>(transmute(&a), transmute(&b))};
|
2022-07-01 08:49:05 -05:00
|
|
|
| ^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `swap`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|