mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 00:51:14 -04:00
11 lines
185 B
Rust
11 lines
185 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/3888
|
|
|
|
//@ check-pass
|
|
#![allow(dead_code)]
|
|
|
|
fn vec_peek<'r, T>(v: &'r [T]) -> &'r [T] {
|
|
&v[1..5]
|
|
}
|
|
|
|
pub fn main() {}
|