aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/rust/10 language stds/meson.build
blob: 994433968b9038aaa08cca015708736db631cf75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)