]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/inconsistent-lifetime-mismatch.rs
Rollup merge of #104822 - spastorino:selctx-new-instead-of-with_query_mode, r=lcnr
[rust.git] / src / test / ui / binding / inconsistent-lifetime-mismatch.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 fn foo(_: &[&str]) {}
6
7 fn bad(a: &str, b: &str) {
8     foo(&[a, b]);
9 }
10
11 fn good(a: &str, b: &str) {
12     foo(&[a, b]);
13 }
14
15 fn main() {}