]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-pattern-typing-issue-19552.rs
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-pattern-typing-issue-19552.rs
1 fn assert_static<T: 'static>(_t: T) {}
2
3 fn main() {
4     let line = String::new();
5     match [&*line] { //~ ERROR `line` does not live long enough
6         [ word ] => { assert_static(word); }
7     }
8 }