1 error[E0308]: mismatched types
2 --> $DIR/explain_clone_autoref.rs:9:5
4 LL | fn clone_thing(nc: &NotClone) -> NotClone {
5 | -------- expected `NotClone` because of return type
8 | ^^^^^^^^^^ expected struct `NotClone`, found `&NotClone`
10 note: `NotClone` does not implement `Clone`, so `&NotClone` was cloned instead
11 --> $DIR/explain_clone_autoref.rs:9:5
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.