fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
765 B24 linesraw
1error[E0277]: `u16` needs to have the same ABI as a pointer
2  --> $DIR/pointer-like.rs:11:14
3   |
4LL |     require_(1u16);
5   |     -------- ^^^^ the trait `PointerLike` is not implemented for `u16`
6   |     |
7   |     required by a bound introduced by this call
8   |
9   = note: the trait bound `u16: PointerLike` is not satisfied
10note: required by a bound in `require_`
11  --> $DIR/pointer-like.rs:7:21
12   |
13LL | fn require_(_: impl PointerLike) {}
14   |                     ^^^^^^^^^^^ required by this bound in `require_`
15help: consider borrowing here
16   |
17LL |     require_(&1u16);
18   |              +
19LL |     require_(&mut 1u16);
20   |              ++++
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0277`.