summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0518.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0518.rs')
-rw-r--r--tests/ui/error-codes/E0518.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0518.rs b/tests/ui/error-codes/E0518.rs
new file mode 100644
index 000000000..9c99702ad
--- /dev/null
+++ b/tests/ui/error-codes/E0518.rs
@@ -0,0 +1,9 @@
+#[inline(always)] //~ ERROR: E0518
+struct Foo;
+
+#[inline(never)] //~ ERROR: E0518
+impl Foo {
+}
+
+fn main() {
+}