fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/into-convert.rs:6:16 3 | 4LL | let x: A = B; 5 | - ^ expected `A`, found `B` 6 | | 7 | expected due to this 8 | 9help: call `Into::into` on this expression to convert `B` into `A` 10 | 11LL | let x: A = B.into(); 12 | +++++++ 13 14error[E0308]: mismatched types 15 --> $DIR/into-convert.rs:10:24 16 | 17LL | let y: Arc<Path> = PathBuf::new(); 18 | --------- ^^^^^^^^^^^^^^ expected `Arc<Path>`, found `PathBuf` 19 | | 20 | expected due to this 21 | 22 = note: expected struct `Arc<Path>` 23 found struct `PathBuf` 24help: call `Into::into` on this expression to convert `PathBuf` into `Arc<Path>` 25 | 26LL | let y: Arc<Path> = PathBuf::new().into(); 27 | +++++++ 28 29error[E0308]: mismatched types 30 --> $DIR/into-convert.rs:14:24 31 | 32LL | let z: AtomicU32 = 1; 33 | --------- ^ expected `AtomicU32`, found integer 34 | | 35 | expected due to this 36 | 37help: call `Into::into` on this expression to convert `{integer}` into `AtomicU32` 38 | 39LL | let z: AtomicU32 = 1.into(); 40 | +++++++ 41 42error: aborting due to 3 previous errors 43 44For more information about this error, try `rustc --explain E0308`.