fork/rust

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

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

master
968 B25 linesraw
1warning: `Rect` is ambiguous
2  --> $DIR/ambiguous-13.rs:19:9
3   |
4LL | fn a(_: Rect) {}
5   |         ^^^^ ambiguous name
6   |
7   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8   = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
9   = note: ambiguous because of multiple glob imports of a name in the same module
10note: `Rect` could refer to the struct imported here
11  --> $DIR/ambiguous-13.rs:16:5
12   |
13LL | use crate::object::*;
14   |     ^^^^^^^^^^^^^^^^
15   = help: consider adding an explicit import of `Rect` to disambiguate
16note: `Rect` could also refer to the struct imported here
17  --> $DIR/ambiguous-13.rs:17:5
18   |
19LL | use crate::content::*;
20   |     ^^^^^^^^^^^^^^^^^
21   = help: consider adding an explicit import of `Rect` to disambiguate
22   = note: `#[warn(ambiguous_glob_imports)]` on by default
23
24warning: 1 warning emitted
25