]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/similar_paths_primitive.stderr
Rollup merge of #106855 - klensy:rd-s, r=notriddle
[rust.git] / tests / ui / mismatched_types / similar_paths_primitive.stderr
1 error[E0308]: mismatched types
2   --> $DIR/similar_paths_primitive.rs:8:9
3    |
4 LL |     foo(true);
5    |     --- ^^^^ expected struct `bool`, found `bool`
6    |     |
7    |     arguments to this function are incorrect
8    |
9    = note: bool and struct `bool` have similar names, but are actually distinct types
10    = note: bool is a primitive defined by the language
11 note: struct `bool` is defined in the current crate
12   --> $DIR/similar_paths_primitive.rs:3:1
13    |
14 LL | struct bool;
15    | ^^^^^^^^^^^
16 note: function defined here
17   --> $DIR/similar_paths_primitive.rs:5:4
18    |
19 LL | fn foo(_: bool) {}
20    |    ^^^ -------
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0308`.