1 error[E0308]: mismatched types
2 --> $DIR/similar_paths_primitive.rs:8:9
5 | --- ^^^^ expected struct `bool`, found `bool`
7 | arguments to this function are incorrect
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
16 note: function defined here
17 --> $DIR/similar_paths_primitive.rs:5:4
19 LL | fn foo(_: bool) {}
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0308`.