Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/occurs-check-3.rs

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

12 lines
193 B
Rust
Raw Normal View History

Another test for the occurs check, this one from issue 778
2011-08-05 15:46:50 -07:00
// From Issue #778
make non_camel_case_types an early lint
2018-12-16 22:21:47 -05:00
enum Clam<T> { A(T) }
remove `sub_relations` from infcx, recompute in diagnostics we don't track them when canonicalizing or when freshening, resulting in instable caching in the old solver, and issues when instantiating query responses in the new one.
2024-01-15 11:44:56 +01:00
fn main() {
let c;
c = Clam::A(c);
change error messages to be incorrect, but more helpful
2024-02-22 18:18:33 +01:00
//~^ ERROR overflow assigning `Clam<_>` to `_`
remove `sub_relations` from infcx, recompute in diagnostics we don't track them when canonicalizing or when freshening, resulting in instable caching in the old solver, and issues when instantiating query responses in the new one.
2024-01-15 11:44:56 +01:00
match c {
Clam::A::<isize>(_) => { }
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6347ms Template: 3ms
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