From ba30dcad2fd9576cade397df33d223fb07d89266 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sat, 15 Jun 2019 22:22:06 +0200 Subject: [PATCH] Remove the default type of `Rem::Output` --- src/libcore/lib.rs | 1 - src/libcore/ops/arith.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 030f4f1d12c..f8c8d4b02db 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -69,7 +69,6 @@ #![feature(allow_internal_unstable)] #![feature(arbitrary_self_types)] #![feature(asm)] -#![feature(associated_type_defaults)] #![feature(bound_cloned)] #![feature(cfg_target_has_atomic)] #![feature(concat_idents)] diff --git a/src/libcore/ops/arith.rs b/src/libcore/ops/arith.rs index 8139305f530..3c009d644c6 100644 --- a/src/libcore/ops/arith.rs +++ b/src/libcore/ops/arith.rs @@ -508,7 +508,7 @@ fn div(self, other: $t) -> $t { self / other } pub trait Rem { /// The resulting type after applying the `%` operator. #[stable(feature = "rust1", since = "1.0.0")] - type Output = Self; + type Output; /// Performs the `%` operation. #[must_use] -- 2.44.0