summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/from_over_into.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/from_over_into.rs')
-rw-r--r--src/tools/clippy/tests/ui/from_over_into.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/from_over_into.rs b/src/tools/clippy/tests/ui/from_over_into.rs
index 5aa127bfa..965f4d5d7 100644
--- a/src/tools/clippy/tests/ui/from_over_into.rs
+++ b/src/tools/clippy/tests/ui/from_over_into.rs
@@ -1,5 +1,6 @@
// run-rustfix
+#![feature(type_alias_impl_trait)]
#![warn(clippy::from_over_into)]
#![allow(unused)]
@@ -81,4 +82,10 @@ fn msrv_1_41() {
}
}
+type Opaque = impl Sized;
+struct IntoOpaque;
+impl Into<Opaque> for IntoOpaque {
+ fn into(self) -> Opaque {}
+}
+
fn main() {}