From ddf881110dc496c56b0b7c3b423ed9692af77ff4 Mon Sep 17 00:00:00 2001 From: varkor Date: Fri, 15 Feb 2019 22:24:22 +0000 Subject: [PATCH] Add E0111 Co-Authored-By: Gabriel Smith --- src/librustc_typeck/diagnostics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 71767fcfd49..3c4a0760f3e 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1326,6 +1326,10 @@ type X = u32; // ok! ``` "##, +E0111: r##" +You tried to give a const parameter to a type which doesn't need it. +"##, + E0116: r##" You can only define an inherent implementation for a type in the same crate where the type was defined. For example, an `impl` block as below is not allowed