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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/async-await/inference_var_self_argument.rs

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

13 lines
255 B
Rust
Raw Normal View History

Don't ICE when deducing future output if other errors already occurred
2024-01-17 14:52:38 +00:00
//! This is a regression test for an ICE.
//@ edition: 2021
trait Foo {
async fn foo(self: &dyn Foo) {
Refactor dyn-compatibility error and suggestions This CL makes a number of small changes to dyn compatibility errors: - "object safety" has been renamed to "dyn-compatibility" throughout - "Convert to enum" suggestions are no longer generated when there exists a type-generic impl of the trait or an impl for `dyn OtherTrait` - Several error messages are reorganized for user readability Additionally, the dyn compatibility error creation code has been split out into functions. cc #132713 cc #133267
2024-11-20 14:19:36 -08:00
//~^ ERROR: `Foo` is not dyn compatible
Replace item names containing an error code with something more meaningful or inline such functions if useless.
2024-04-25 03:11:19 +02:00
//~| ERROR invalid `self` parameter type: `&dyn Foo`
Don't ICE when deducing future output if other errors already occurred
2024-01-17 14:52:38 +00:00
todo!()
}
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 403ms 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