diff options
Diffstat (limited to 'src/test/ui/associated-types/issue-59324.rs')
-rw-r--r-- | src/test/ui/associated-types/issue-59324.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/test/ui/associated-types/issue-59324.rs b/src/test/ui/associated-types/issue-59324.rs deleted file mode 100644 index 9e68e9e77..000000000 --- a/src/test/ui/associated-types/issue-59324.rs +++ /dev/null @@ -1,26 +0,0 @@ -trait NotFoo {} - -pub trait Foo: NotFoo { - type OnlyFoo; -} - -pub trait Service { - type AssocType; -} - -pub trait ThriftService<Bug: NotFoo>: -//~^ ERROR the trait bound `Bug: Foo` is not satisfied -//~| ERROR the trait bound `Bug: Foo` is not satisfied - Service<AssocType = <Bug as Foo>::OnlyFoo> -{ - fn get_service( - //~^ ERROR the trait bound `Bug: Foo` is not satisfied - //~| ERROR the trait bound `Bug: Foo` is not satisfied - &self, - ) -> Self::AssocType; -} - -fn with_factory<H>(factory: dyn ThriftService<()>) {} -//~^ ERROR the trait bound `(): Foo` is not satisfied - -fn main() {} |