]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(unused_variables)] |
cc61c64b XL |
3 | // Regression test for #40951. |
4 | ||
5 | const FOO: [&'static str; 1] = ["foo"]; | |
6 | ||
7 | fn find<T: PartialEq>(t: &[T], element: &T) { } | |
a7813a04 XL |
8 | |
9 | fn main() { | |
cc61c64b XL |
10 | let x = format!("hi"); |
11 | find(&FOO, &&*x); | |
54a0048b | 12 | } |