summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/into-convert.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/into-convert.rs')
-rw-r--r--src/test/ui/suggestions/into-convert.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/test/ui/suggestions/into-convert.rs b/src/test/ui/suggestions/into-convert.rs
deleted file mode 100644
index 1c9a9e0aa..000000000
--- a/src/test/ui/suggestions/into-convert.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-use std::path::{Path, PathBuf};
-use std::sync::atomic::AtomicU32;
-use std::sync::Arc;
-
-fn main() {
- let x: A = B;
- //~^ ERROR mismatched types
- //~| HELP call `Into::into` on this expression to convert `B` into `A`
-
- let y: Arc<Path> = PathBuf::new();
- //~^ ERROR mismatched types
- //~| HELP call `Into::into` on this expression to convert `PathBuf` into `Arc<Path>`
-
- let z: AtomicU32 = 1;
- //~^ ERROR mismatched types
- //~| HELP call `Into::into` on this expression to convert `{integer}` into `AtomicU32`
-}
-
-struct A;
-struct B;
-
-impl From<B> for A {
- fn from(_: B) -> Self {
- A
- }
-}