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

15 lines
348 B
Rust
Raw Normal View History

early-prohibit objects with Self-containing supertraits Fixes #28576
2015-09-24 18:27:29 +03:00
pub trait Foo<RHS=Self> {
type Assoc;
}
pub trait Bar: Foo<Assoc=()> {
Avoid silencing relevant follow-up errors
2023-10-31 13:45:26 +00:00
//~^ ERROR: the size for values of type `Self` cannot be known
//~| ERROR: the size for values of type `Self` cannot be known
early-prohibit objects with Self-containing supertraits Fixes #28576
2015-09-24 18:27:29 +03:00
fn new(&self, b: &
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
dyn Bar //~ ERROR the trait `Bar` is not dyn compatible
early-prohibit objects with Self-containing supertraits Fixes #28576
2015-09-24 18:27:29 +03:00
<Assoc=()>
);
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6879ms Template: 4ms
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