Skip to content
Myr

Add main function to ui tests without main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

These emit a new error not relevant to Serde as of nightly-2018-12-29.

authored by David Tolnay · committed by David Tolnay · parent eb72507 · Browse files · 6 files+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+12 added−0 removed

  • tests:+12 added−0 removed

6 files+12 added−0 removed

modified:test_suite/tests/ui/default-attribute/enum_path.rs+2 added
4 unmodified lines
5#[serde(default = "default_e")]6enum E {7 S { f: u8 },8}910fn main() {}
modified:test_suite/tests/ui/default-attribute/enum.rs+2 added
4 unmodified lines
5#[serde(default)]6enum E {7 S { f: u8 },8}910fn main() {}
modified:test_suite/tests/ui/precondition/deserialize_de_lifetime.rs+2 added
3 unmodified lines
4#[derive(Deserialize)]5struct S<'de> {6 s: &'de str,7}89fn main() {}
modified:test_suite/tests/ui/precondition/deserialize_dst.rs+2 added
4 unmodified lines
5struct S {6 string: String,7 slice: [u8],8}910fn main() {}
modified:test_suite/tests/ui/type-attribute/from.rs+2 added
7 unmodified lines
8 One,9 Two,10 Three,11}1213fn main() {}
modified:test_suite/tests/ui/type-attribute/into.rs+2 added
7 unmodified lines
8 One,9 Two,10 Three,11}1213fn main() {}