mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
27 lines
440 B
Rust
27 lines
440 B
Rust
// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
|
|
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
|
|
|
|
/**
|
|
Test that the tokenizer properly rejects tokens with spaces.
|
|
|
|
This should work:
|
|
|
|
```
|
|
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;
|