summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/inconsistent-lifetime-mismatch.rs
blob: 87768c28cf4a132b5a4a225a4fb0dd3e4aeb184d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

fn foo(_: &[&str]) {}

fn bad(a: &str, b: &str) {
    foo(&[a, b]);
}

fn good(a: &str, b: &str) {
    foo(&[a, b]);
}

fn main() {}