about summary refs log tree commit diff
path: root/src/test/rustdoc-json/structs.rs
blob: 43fc4743503aa5348f02b06a042ae7de7fc91200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashMap;

pub struct PlainEmpty {}

pub struct Tuple(u32, String);

pub struct Unit;

pub struct WithPrimitives<'a> {
    num: u32,
    s: &'a str,
}

pub struct WithGenerics<T, U> {
    stuff: Vec<T>,
    things: HashMap<U, U>,
}