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
0b45675cfcec57f30a3794e1a1e18423aa9cf200
rust/tests/ui/occurs-check-2.rs

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

10 lines
120 B
Rust
Raw Normal View History

Avoid ever constructing cyclic types in the first place, rather than detecting them in resolve. This simplifies logic elsewhere in the compiler. cc #5527
2014-09-09 17:45:51 -04:00
fn main() {
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
Avoid ever constructing cyclic types in the first place, rather than detecting them in resolve. This simplifies logic elsewhere in the compiler. cc #5527
2014-09-09 17:45:51 -04:00
let f;
let g;
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
Avoid ever constructing cyclic types in the first place, rather than detecting them in resolve. This simplifies logic elsewhere in the compiler. cc #5527
2014-09-09 17:45:51 -04:00
g = f;
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
f = Box::new(g);
change error messages to be incorrect, but more helpful
2024-02-22 18:18:33 +01:00
//~^ ERROR overflow assigning `Box<_>` to `_`
Avoid ever constructing cyclic types in the first place, rather than detecting them in resolve. This simplifies logic elsewhere in the compiler. cc #5527
2014-09-09 17:45:51 -04:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 9526ms Template: 2ms
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