File: unsorted-struct.rs

package info (click to toggle)
rust-remain 0.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 296 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 139 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
use remain::sorted;

#[sorted]
struct TestStruct {
    d: usize,
    #[unsorted]
    c: usize,
    a: usize,
    b: usize,
}

fn main() {}