summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-88696.rs
blob: 745fdef154632c355143f8db9fcbb32422b2f1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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());
}