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
13 LL | pub enum Option<T> {
15 note: enum `Option` is defined in the current crate
16 --> $DIR/similar_paths.rs:1:1
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0308`.