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
a1d1d7a2c696c2afeff2ea206621a32d77fa49dc
rust/src/test/ui/issues/issue-18107.rs

14 lines
189 B
Rust
Raw Normal View History

test: Fix fallout in tests
2015-04-17 22:12:20 -07:00
pub trait AbstractRenderer {}
Ensure that the return type of a function is Sized While no real rvalue of an unsized type can exist, a diverging function can still "return" a value of such a type, which causes an ICE. Fixes #18107.
2014-10-18 23:12:02 +03:00
fn _create_render(_: &()) ->
AbstractRenderer
Fix typo in error message E0277
2018-07-10 23:10:13 +02:00
//~^ ERROR the size for values of type
Ensure that the return type of a function is Sized While no real rvalue of an unsized type can exist, a diverging function can still "return" a value of such a type, which causes an ICE. Fixes #18107.
2014-10-18 23:12:02 +03:00
{
Remove integer suffixes where the types in compiled code are identical.
2015-03-03 10:42:26 +02:00
match 0 {
Ensure that the return type of a function is Sized While no real rvalue of an unsized type can exist, a diverging function can still "return" a value of such a type, which causes an ICE. Fixes #18107.
2014-10-18 23:12:02 +03:00
_ => unimplemented!()
}
}
fn main() {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3313ms 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