File: test.rs

package info (click to toggle)
rust-inventory 0.3.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 195 bytes parent folder | download
1
2
3
4
5
6
7
8
9
use std::mem;

pub struct Thing(pub usize);

#[test]
fn test_iter() {
    assert_eq!(0, mem::size_of::<inventory::iter<Thing>>());
    assert_eq!(1, mem::align_of::<inventory::iter<Thing>>());
}