diff options
Diffstat (limited to 'tests/ui/traits/issue-28576.rs')
-rw-r--r-- | tests/ui/traits/issue-28576.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-28576.rs b/tests/ui/traits/issue-28576.rs new file mode 100644 index 000000000..972c839b6 --- /dev/null +++ b/tests/ui/traits/issue-28576.rs @@ -0,0 +1,12 @@ +pub trait Foo<RHS=Self> { + type Assoc; +} + +pub trait Bar: Foo<Assoc=()> { + fn new(&self, b: & + dyn Bar //~ ERROR the trait `Bar` cannot be made into an object + <Assoc=()> + ); +} + +fn main() {} |