Untitled Project
forward_relations.rs
Source file coverage
Path:
forward_relations.rs
Lines:
35
Non-empty lines:
27
Non-empty lines covered with requirements:
26 / 27 (96.3%)
Functions:
13
Functions covered by requirements:
13 / 13 (100.0%)
1
mod FooModule {
2
    pub trait FooTrait {
3
        fn foo(&self) {}
4
    }
5
 
6
    fn foo() {
7
        fn bar() -> u32 {
8
            pub const BAR_CONST: u32 = 42;
9
            BAR_CONST
10
        }
11
 
12
        println!("{}", bar());
13
    }
14
}
15
 
16
struct FooTuple(i32);
17
18
impl FooModule::FooTrait for FooTuple {
19
    fn foo(&self) {}
20
}
21
 
22
union FooUnion {a: i32}
23
24
pub const FOO_CONST: u32 = 42;
25
26
trait FooTrait {
27
    fn foo() {}
28
}
29
 
30
pub enum FooEnum {
31
    Foo,
32
    Bar {
33
        baz: u64,
34
    },
35
}