summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-109436.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-109436.rs')
-rw-r--r--tests/ui/suggestions/issue-109436.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-109436.rs b/tests/ui/suggestions/issue-109436.rs
new file mode 100644
index 000000000..e45ee5991
--- /dev/null
+++ b/tests/ui/suggestions/issue-109436.rs
@@ -0,0 +1,13 @@
+struct Foo;
+struct Bar;
+
+impl From<&Foo> for Bar {
+ fn from(foo: &Foo) -> Bar {
+ Bar
+ }
+}
+
+fn main() {
+ let foo = Foo;
+ let b: Bar = foo.into(); //~ ERROR E0277
+}