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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/structs-enums/issue-3008-3.rs

11 lines
187 B
Rust
Raw Normal View History

Fallout: tests. As tests frequently elide things, lots of changes here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2015-02-12 10:29:52 -05:00
use std::marker;
Add compile-fail tests for non-representable structs and enums
2014-01-28 01:29:22 -05:00
enum E1 { V1(E2<E1>), }
Fallout: tests. As tests frequently elide things, lots of changes here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2015-02-12 10:29:52 -05:00
enum E2<T> { V2(E2<E1>, marker::PhantomData<T>), }
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 `E2` has infinite size
Add compile-fail tests for non-representable structs and enums
2014-01-28 01:29:22 -05:00
Fix several issues with the struct and enum representability-checking logic.
2014-10-06 02:20:25 -04:00
impl E1 { fn foo(&self) {} }
Add compile-fail tests for non-representable structs and enums
2014-01-28 01:29:22 -05:00
fn main() {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6836ms 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