mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
34 lines
574 B
Rust
34 lines
574 B
Rust
/* LICENSE BEGIN
|
|
|
|
This file is part of the Sixty FPS Project
|
|
|
|
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
|
|
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
|
|
|
|
SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
LICENSE END */
|
|
/**
|
|
Test that the tokenizer properly reject tokens with spaces.
|
|
|
|
This should worlk:
|
|
|
|
```
|
|
mod x {
|
|
use sixtyfps::*;
|
|
sixtyfps!{ Hello := Rectangle { } }
|
|
}
|
|
```
|
|
|
|
But his not:
|
|
|
|
```compile_fail
|
|
mod x {
|
|
use sixtyfps::*;
|
|
sixtyfps!{ Hello : = Rectangle { } }
|
|
}
|
|
```
|
|
|
|
*/
|
|
#[cfg(doctest)]
|
|
const basic: u32 = 0;
|