]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-40951.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-40951.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(unused_variables)]
cc61c64b
XL
3// Regression test for #40951.
4
5const FOO: [&'static str; 1] = ["foo"];
6
7fn find<T: PartialEq>(t: &[T], element: &T) { }
a7813a04
XL
8
9fn main() {
cc61c64b
XL
10 let x = format!("hi");
11 find(&FOO, &&*x);
54a0048b 12}