summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-88696.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-88696.rs')
-rw-r--r--tests/ui/suggestions/issue-88696.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-88696.rs b/tests/ui/suggestions/issue-88696.rs
new file mode 100644
index 000000000..745fdef15
--- /dev/null
+++ b/tests/ui/suggestions/issue-88696.rs
@@ -0,0 +1,14 @@
+// This test case should ensure that miniz_oxide isn't
+// suggested, since it's not a direct dependency.
+
+fn a() -> Result<u64, i32> {
+ Err(1)
+}
+
+fn b() -> Result<u32, i32> {
+ a().into() //~ERROR [E0277]
+}
+
+fn main() {
+ let _ = dbg!(b());
+}