Skip to content

Commit

Permalink
add missing copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
scottlamb committed Oct 23, 2022
1 parent 40764cb commit 54f6713
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 37 deletions.
3 changes: 3 additions & 0 deletions static-xml-derive/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (C) 2022 Scott Lamb <[email protected]>
// SPDX-License-Identifier: MIT OR Apache-2.0

#[test]
fn test() {
let t = trybuild::TestCases::new();
Expand Down
3 changes: 3 additions & 0 deletions static-xml-derive/tests/ui/field-not-parsetext.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (C) 2022 Scott Lamb <[email protected]>
// SPDX-License-Identifier: MIT OR Apache-2.0

use static_xml_derive::Deserialize;

struct Foo;
Expand Down
74 changes: 37 additions & 37 deletions static-xml-derive/tests/ui/field-not-parsetext.stderr
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
error[E0277]: the trait bound `Foo: ParseText` is not satisfied
--> tests/ui/field-not-parsetext.rs:7:5
|
5 | #[derive(Deserialize)]
| ----------- this tail expression is of type `&mut Foo`
6 | struct Outer {
7 | foo: Foo,
| ^^^^^^^^ the trait `ParseText` is not implemented for `Foo`
|
= help: the following other types implement trait `ParseText`:
String
bool
f32
f64
i128
i16
i32
i64
and $N others
= note: required for `Foo` to implement `Deserialize`
= note: required for `Foo` to implement `DeserializeElementField`
--> tests/ui/field-not-parsetext.rs:10:5
|
8 | #[derive(Deserialize)]
| ----------- this tail expression is of type `&mut Foo`
9 | struct Outer {
10 | foo: Foo,
| ^^^^^^^^ the trait `ParseText` is not implemented for `Foo`
|
= help: the following other types implement trait `ParseText`:
String
bool
f32
f64
i128
i16
i32
i64
and $N others
= note: required for `Foo` to implement `Deserialize`
= note: required for `Foo` to implement `DeserializeElementField`

error[E0277]: the trait bound `Foo: ParseText` is not satisfied
--> tests/ui/field-not-parsetext.rs:7:5
|
7 | foo: Foo,
| ^^^^^^^^ the trait `ParseText` is not implemented for `Foo`
|
= help: the following other types implement trait `ParseText`:
String
bool
f32
f64
i128
i16
i32
i64
and $N others
= note: required for `Foo` to implement `Deserialize`
= note: required for `Foo` to implement `DeserializeElementField`
--> tests/ui/field-not-parsetext.rs:10:5
|
10 | foo: Foo,
| ^^^^^^^^ the trait `ParseText` is not implemented for `Foo`
|
= help: the following other types implement trait `ParseText`:
String
bool
f32
f64
i128
i16
i32
i64
and $N others
= note: required for `Foo` to implement `Deserialize`
= note: required for `Foo` to implement `DeserializeElementField`

0 comments on commit 54f6713

Please sign in to comment.