summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2018-04-27 07:20:46 +0200
committerAmanieu d'Antras <amanieu@gmail.com>2018-04-27 12:34:01 +0200
commit5f2c111165371b1e59fec9cd90e364ccf08b68ef (patch)
treecb2778e11461f77953bac15924e43630af62682b /src/test/ui/error-codes
parent9822b5709ca78d6398e9ae609de0181116e8b0db (diff)
downloadrust-5f2c111165371b1e59fec9cd90e364ccf08b68ef.tar.gz
rust-5f2c111165371b1e59fec9cd90e364ccf08b68ef.zip
Allow #[inline] on closures
Fixes #49632
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0518.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0518.stderr b/src/test/ui/error-codes/E0518.stderr
index d8feec99140..27d5d3645fd 100644
--- a/src/test/ui/error-codes/E0518.stderr
+++ b/src/test/ui/error-codes/E0518.stderr
@@ -1,19 +1,19 @@
-error[E0518]: attribute should be applied to function
+error[E0518]: attribute should be applied to function or closure
   --> $DIR/E0518.rs:11:1
    |
 LL | #[inline(always)] //~ ERROR: E0518
    | ^^^^^^^^^^^^^^^^^
 LL | struct Foo;
-   | ----------- not a function
+   | ----------- not a function or closure
 
-error[E0518]: attribute should be applied to function
+error[E0518]: attribute should be applied to function or closure
   --> $DIR/E0518.rs:14:1
    |
 LL |   #[inline(never)] //~ ERROR: E0518
    |   ^^^^^^^^^^^^^^^^
 LL | / impl Foo {
 LL | | }
-   | |_- not a function
+   | |_- not a function or closure
 
 error: aborting due to 2 previous errors