summaryrefslogtreecommitdiffstats
path: root/src/test/ui/kindck/kindck-impl-type-params.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/kindck/kindck-impl-type-params.stderr')
-rw-r--r--src/test/ui/kindck/kindck-impl-type-params.stderr103
1 files changed, 0 insertions, 103 deletions
diff --git a/src/test/ui/kindck/kindck-impl-type-params.stderr b/src/test/ui/kindck/kindck-impl-type-params.stderr
deleted file mode 100644
index 8dbe0c38c..000000000
--- a/src/test/ui/kindck/kindck-impl-type-params.stderr
+++ /dev/null
@@ -1,103 +0,0 @@
-error[E0277]: `T` cannot be sent between threads safely
- --> $DIR/kindck-impl-type-params.rs:16:13
- |
-LL | let a = &t as &dyn Gettable<T>;
- | ^^ `T` cannot be sent between threads safely
- |
-note: required for `S<T>` to implement `Gettable<T>`
- --> $DIR/kindck-impl-type-params.rs:12:32
- |
-LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
- | ^^^^^^^^^^^ ^^^^
- = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
-help: consider restricting type parameter `T`
- |
-LL | fn f<T: std::marker::Send>(val: T) {
- | +++++++++++++++++++
-
-error[E0277]: the trait bound `T: Copy` is not satisfied
- --> $DIR/kindck-impl-type-params.rs:16:13
- |
-LL | let a = &t as &dyn Gettable<T>;
- | ^^ the trait `Copy` is not implemented for `T`
- |
-note: required for `S<T>` to implement `Gettable<T>`
- --> $DIR/kindck-impl-type-params.rs:12:32
- |
-LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
- | ^^^^^^^^^^^ ^^^^
- = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
-help: consider restricting type parameter `T`
- |
-LL | fn f<T: std::marker::Copy>(val: T) {
- | +++++++++++++++++++
-
-error[E0277]: `T` cannot be sent between threads safely
- --> $DIR/kindck-impl-type-params.rs:23:31
- |
-LL | let a: &dyn Gettable<T> = &t;
- | ^^ `T` cannot be sent between threads safely
- |
-note: required for `S<T>` to implement `Gettable<T>`
- --> $DIR/kindck-impl-type-params.rs:12:32
- |
-LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
- | ^^^^^^^^^^^ ^^^^
- = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
-help: consider restricting type parameter `T`
- |
-LL | fn g<T: std::marker::Send>(val: T) {
- | +++++++++++++++++++
-
-error[E0277]: the trait bound `T: Copy` is not satisfied
- --> $DIR/kindck-impl-type-params.rs:23:31
- |
-LL | let a: &dyn Gettable<T> = &t;
- | ^^ the trait `Copy` is not implemented for `T`
- |
-note: required for `S<T>` to implement `Gettable<T>`
- --> $DIR/kindck-impl-type-params.rs:12:32
- |
-LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
- | ^^^^^^^^^^^ ^^^^
- = note: required for the cast from `S<T>` to the object type `dyn Gettable<T>`
-help: consider restricting type parameter `T`
- |
-LL | fn g<T: std::marker::Copy>(val: T) {
- | +++++++++++++++++++
-
-error[E0277]: the trait bound `String: Copy` is not satisfied
- --> $DIR/kindck-impl-type-params.rs:35:13
- |
-LL | let a = t as Box<dyn Gettable<String>>;
- | ^ the trait `Copy` is not implemented for `String`
- |
- = help: the trait `Gettable<T>` is implemented for `S<T>`
-note: required for `S<String>` to implement `Gettable<String>`
- --> $DIR/kindck-impl-type-params.rs:12:32
- |
-LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
- | ^^^^^^^^^^^ ^^^^
- = note: required for the cast from `S<String>` to the object type `dyn Gettable<String>`
-
-error[E0277]: the trait bound `Foo: Copy` is not satisfied
- --> $DIR/kindck-impl-type-params.rs:43:37
- |
-LL | let a: Box<dyn Gettable<Foo>> = t;
- | ^ the trait `Copy` is not implemented for `Foo`
- |
- = help: the trait `Gettable<T>` is implemented for `S<T>`
-note: required for `S<Foo>` to implement `Gettable<Foo>`
- --> $DIR/kindck-impl-type-params.rs:12:32
- |
-LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
- | ^^^^^^^^^^^ ^^^^
- = note: required for the cast from `S<Foo>` to the object type `dyn Gettable<Foo>`
-help: consider annotating `Foo` with `#[derive(Copy)]`
- |
-LL | #[derive(Copy)]
- |
-
-error: aborting due to 6 previous errors
-
-For more information about this error, try `rustc --explain E0277`.