about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-02-15 22:24:22 +0000
committervarkor <github@varkor.com>2019-02-15 22:28:49 +0000
commitddf881110dc496c56b0b7c3b423ed9692af77ff4 (patch)
treee3a96ae9e6633f51dce1c4e8d1d2c9d044173b5b
parent475f20c73db54517255416b66db2edb304e85729 (diff)
downloadrust-ddf881110dc496c56b0b7c3b423ed9692af77ff4.tar.gz
rust-ddf881110dc496c56b0b7c3b423ed9692af77ff4.zip
Add E0111
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
-rw-r--r--src/librustc_typeck/diagnostics.rs4
1 files changed, 4 insertions, 0 deletions
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