mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
226 B
Rust
12 lines
226 B
Rust
//@ run-pass
|
|
#![allow(unused_variables)]
|
|
// Regression test for #40951.
|
|
|
|
const FOO: [&'static str; 1] = ["foo"];
|
|
|
|
fn find<T: PartialEq>(t: &[T], element: &T) { }
|
|
|
|
fn main() {
|
|
let x = format!("hi");
|
|
find(&FOO, &&*x);
|
|
}
|