From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/coherence/coherence-with-generator.rs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 tests/ui/coherence/coherence-with-generator.rs (limited to 'tests/ui/coherence/coherence-with-generator.rs') diff --git a/tests/ui/coherence/coherence-with-generator.rs b/tests/ui/coherence/coherence-with-generator.rs deleted file mode 100644 index 5eb8dc2a4..000000000 --- a/tests/ui/coherence/coherence-with-generator.rs +++ /dev/null @@ -1,24 +0,0 @@ -// Test that encountering closures during coherence does not cause issues. -#![feature(type_alias_impl_trait, generators)] -#![cfg_attr(specialized, feature(specialization))] -#![allow(incomplete_features)] - -// revisions: stock specialized -// [specialized]check-pass - -type OpaqueGenerator = impl Sized; -fn defining_use() -> OpaqueGenerator { - || { - for i in 0..10 { - yield i; - } - } -} - -struct Wrapper(T); -trait Trait {} -impl Trait for Wrapper {} -impl Trait for Wrapper {} -//[stock]~^ ERROR conflicting implementations of trait `Trait` for type `Wrapper` - -fn main() {} -- cgit v1.2.3