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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/issues/issue-18107.rs

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

14 lines
230 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(_: &()) ->
Update ui test suite to use dyn
2019-05-28 14:46:13 -04:00
dyn AbstractRenderer
Make error message less awkward
2025-02-02 14:58:12 +00:00
//~^ ERROR return type cannot be a trait object without pointer indirection
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: 5766ms 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