1 error[E0308]: mismatched types
2 --> $DIR/similar_paths.rs:7:5
4 LL | pub fn foo() -> Option<u8> {
5 | ---------- expected `Option<u8>` because of return type
7 | ^^^^^^^^^^^ expected enum `Option`, found enum `std::option::Option`
9 = note: enum `std::option::Option` and enum `Option` have similar names, but are actually distinct types
10 note: enum `std::option::Option` is defined in crate `core`
11 --> $SRC_DIR/core/src/option.rs:LL:COL
12 note: enum `Option` is defined in the current crate
13 --> $DIR/similar_paths.rs:1:1
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.