summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-71394-no-from-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/suggestions/issue-71394-no-from-impl.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/issue-71394-no-from-impl.rs b/src/test/ui/suggestions/issue-71394-no-from-impl.rs
new file mode 100644
index 000000000..0c35deb51
--- /dev/null
+++ b/src/test/ui/suggestions/issue-71394-no-from-impl.rs
@@ -0,0 +1,5 @@
+fn main() {
+ let data: &[u8] = &[0; 10];
+ let _: &[i8] = data.into();
+ //~^ ERROR the trait bound `&[i8]: From<&[u8]>` is not satisfied
+}