diff options
Diffstat (limited to 'tests/ui/impl-trait/auto-trait-selection.rs')
| -rw-r--r-- | tests/ui/impl-trait/auto-trait-selection.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/auto-trait-selection.rs b/tests/ui/impl-trait/auto-trait-selection.rs index beb0b189fd7..ee5612459c2 100644 --- a/tests/ui/impl-trait/auto-trait-selection.rs +++ b/tests/ui/impl-trait/auto-trait-selection.rs @@ -3,7 +3,6 @@ //@ revisions: next old //@[next] compile-flags: -Znext-solver -//@[old]check-pass fn is_trait<T: Trait<U>, U: Default>(_: T) -> U { Default::default() @@ -14,7 +13,7 @@ impl<T: Send> Trait<u32> for T {} impl<T> Trait<i32> for T {} fn foo() -> impl Sized { if false { is_trait(foo()) } else { Default::default() } - //[next]~^ ERROR: type annotations needed + //~^ ERROR: type annotations needed } fn main() {} |
