rust/tests/ui/typeck/issue-91633.rs

9 lines
110 B
Rust

//@ check-pass
fn f<T> (it: &[T])
where
[T] : std::ops::Index<usize>,
{
let _ = &it[0];
}
fn main(){}