blob: 05edbd66052af996c609836596ca0eff445f49d8 [file] [edit]
//@ run-pass
#![allow(unused_variables)]
// Regression test for https://github.com/rust-lang/rust/issues/40951.
const FOO: [&'static str; 1] = ["foo"];
fn find<T: PartialEq>(t: &[T], element: &T) { }
fn main() {
let x = format!("hi");
find(&FOO, &&*x);
}