summaryrefslogtreecommitdiffstats
path: root/test cases/rust/10 language stds/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/rust/10 language stds/meson.build')
-rw-r--r--test cases/rust/10 language stds/meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/test cases/rust/10 language stds/meson.build b/test cases/rust/10 language stds/meson.build
new file mode 100644
index 0000000..9944339
--- /dev/null
+++ b/test cases/rust/10 language stds/meson.build
@@ -0,0 +1,18 @@
+project('rust std options', 'rust')
+
+# this only works in 2018
+new = executable(
+ 'new',
+ '2018.rs',
+ override_options : ['rust_std=2018'],
+)
+
+# this only works in 2015
+old = static_library(
+ 'old',
+ '2015.rs',
+ override_options : ['rust_std=2015'],
+)
+
+
+test('2018 std', new)