Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/regions/regions-pattern-typing-issue-19552.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
199 B
Rust
Raw Normal View History

Update tests for the Send - 'static change.
2015-02-17 23:48:32 +11:00
fn assert_static<T: 'static>(_t: T) {}
Correct the subtyping relations created by the pattern typechecking code. Previously we were creating a subtyping relation in the wrong direction. We now just unify types, which is stronger than necessary but turns out fine. Fixes #19552. Fixes #19997.
2015-01-04 05:22:59 -05:00
fn main() {
let line = String::new();
cleanup: replace `as[_mut]_slice()` calls with deref coercions
2015-02-01 21:53:25 -05:00
match [&*line] { //~ ERROR `line` does not live long enough
Update tests for the Send - 'static change.
2015-02-17 23:48:32 +11:00
[ word ] => { assert_static(word); }
Correct the subtyping relations created by the pattern typechecking code. Previously we were creating a subtyping relation in the wrong direction. We now just unify types, which is stronger than necessary but turns out fine. Fixes #19552. Fixes #19997.
2015-01-04 05:22:59 -05:00
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5547ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API