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
901b340c1f5d208561d4261cc3ee634973b35326
rust/tests/ui/resolve/issue-111727.rs

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

7 lines
108 B
Rust
Raw Normal View History

Keep only the trait when emitting the error for `MyTrait + 'a`
2023-05-19 22:11:54 +08:00
//@ edition: 2021
fn main() {
Don't cancel stashed `TraitMissingMethod` errors. This gives one extra error message on two tests, but is necessary to fix bigger problems caused by the cancellation of stashed errors. (Note: why not just avoid stashing altogether? Because that resulted in additional output changes.)
2024-02-26 17:22:24 +11:00
std::any::Any::create();
Don't assume traits used as type are trait objs
2024-10-04 16:10:28 +02:00
//~^ ERROR expected a type, found a trait
Keep only the trait when emitting the error for `MyTrait + 'a`
2023-05-19 22:11:54 +08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1835ms Template: 12ms
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