From 54f671389d192721aed7dc5ba172ba686ad425a8 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Sun, 23 Oct 2022 14:21:47 -0700 Subject: [PATCH] add missing copyright headers --- static-xml-derive/tests/test.rs | 3 + .../tests/ui/field-not-parsetext.rs | 3 + .../tests/ui/field-not-parsetext.stderr | 74 +++++++++---------- 3 files changed, 43 insertions(+), 37 deletions(-) diff --git a/static-xml-derive/tests/test.rs b/static-xml-derive/tests/test.rs index 9f20f75..425de9d 100644 --- a/static-xml-derive/tests/test.rs +++ b/static-xml-derive/tests/test.rs @@ -1,3 +1,6 @@ +// Copyright (C) 2022 Scott Lamb +// SPDX-License-Identifier: MIT OR Apache-2.0 + #[test] fn test() { let t = trybuild::TestCases::new(); diff --git a/static-xml-derive/tests/ui/field-not-parsetext.rs b/static-xml-derive/tests/ui/field-not-parsetext.rs index 854dec2..df53f68 100644 --- a/static-xml-derive/tests/ui/field-not-parsetext.rs +++ b/static-xml-derive/tests/ui/field-not-parsetext.rs @@ -1,3 +1,6 @@ +// Copyright (C) 2022 Scott Lamb +// SPDX-License-Identifier: MIT OR Apache-2.0 + use static_xml_derive::Deserialize; struct Foo; diff --git a/static-xml-derive/tests/ui/field-not-parsetext.stderr b/static-xml-derive/tests/ui/field-not-parsetext.stderr index c72a61e..f2c0604 100644 --- a/static-xml-derive/tests/ui/field-not-parsetext.stderr +++ b/static-xml-derive/tests/ui/field-not-parsetext.stderr @@ -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`