]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-pattern-typing-issue-19552.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / 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 }