about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authormendess <pedro.mendes.26@gmail.com>2020-11-24 10:28:18 +0000
committermendess <pedro.mendes.26@gmail.com>2020-11-24 10:28:18 +0000
commitaf978e3b63dce24e81a9ebecde08c9116f871a4e (patch)
tree6e6f447b498ec54a7607cdab0837fff3dfe924ce /compiler/rustc_resolve/src
parentb7593e5070e71af5d43b29c84611a836b8d0fdcc (diff)
downloadrust-af978e3b63dce24e81a9ebecde08c9116f871a4e.tar.gz
rust-af978e3b63dce24e81a9ebecde08c9116f871a4e.zip
Requested changes
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs
index 70ab59970d8..9f3e8be0f7a 100644
--- a/compiler/rustc_resolve/src/diagnostics.rs
+++ b/compiler/rustc_resolve/src/diagnostics.rs
@@ -480,8 +480,8 @@ impl<'a> Resolver<'a> {
                         "const parameters may only be used as standalone arguments, i.e. `{}`",
                         name
                     ));
-                    err.note("use feature(const_generics) and feature(const_evaluatable_checked) to enable this");
                 }
+                err.note("use #![feature(const_generics)] and #![feature(const_evaluatable_checked)] to allow generic const expressions");
 
                 err
             }