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
a3bd12b88aaf32b1036cdcb2ef3efe509dbebc15
rust/tests/ui/structs-enums/enum-rec/issue-17431-7.rs

7 lines
134 B
Rust
Raw Normal View History

Fix several issues with the struct and enum representability-checking logic.
2014-10-06 02:20:25 -04:00
enum Foo { Voo(Option<Option<Foo>>) }
Detect cycles and specialize error reporting for Sized. It is important to get the `Sized` error usable, since that hits new users frequently. Further work is needed for the error reporting for non-Sized cycle cases; those currently just fallback to the old path. Also adjust tests.
2016-01-08 21:41:37 -05:00
//~^ ERROR recursive type `Foo` has infinite size
Fix several issues with the struct and enum representability-checking logic.
2014-10-06 02:20:25 -04:00
impl Foo { fn bar(&self) {} }
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5496ms Template: 8ms
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