1 error[E0308]: mismatched types
2 --> $DIR/into-convert.rs:6:16
5 | - ^ expected struct `A`, found struct `B`
9 help: call `Into::into` on this expression to convert `B` into `A`
11 LL | let x: A = B.into();
14 error[E0308]: mismatched types
15 --> $DIR/into-convert.rs:10:24
17 LL | let y: Arc<Path> = PathBuf::new();
18 | --------- ^^^^^^^^^^^^^^ expected struct `Arc`, found struct `PathBuf`
20 | expected due to this
22 = note: expected struct `Arc<Path>`
23 found struct `PathBuf`
24 help: call `Into::into` on this expression to convert `PathBuf` into `Arc<Path>`
26 LL | let y: Arc<Path> = PathBuf::new().into();
29 error[E0308]: mismatched types
30 --> $DIR/into-convert.rs:14:24
32 LL | let z: AtomicU32 = 1;
33 | --------- ^ expected struct `AtomicU32`, found integer
35 | expected due to this
37 help: call `Into::into` on this expression to convert `{integer}` into `AtomicU32`
39 LL | let z: AtomicU32 = 1.into();
42 error: aborting due to 3 previous errors
44 For more information about this error, try `rustc --explain E0308`.