rust/tests/ui/issues/issue-24013.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
356 B
Plaintext
Raw Normal View History

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