|
LL | (|_| 2333).await;
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:16:5: 16:15]`
- |
- ::: $SRC_DIR/libstd/future.rs:LL:COL
- |
-LL | F: Future,
- | ------ required by this bound in `std::future::poll_with_tls_context`
error: aborting due to 4 previous errors
|
LL | let t = thread::spawn(|| {
| ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
- |
- ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
- |
-LL | F: Send + 'static,
- | ---- required by this bound in `std::thread::spawn`
|
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Receiver<()>`
|
LL | thread::spawn(|| tx.send(()).unwrap());
| ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
- |
- ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
- |
-LL | F: Send + 'static,
- | ---- required by this bound in `std::thread::spawn`
|
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<()>`
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Sender<()>`
LL | bytes: [u8; std::mem::size_of::<Foo>()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `std::mem::size_of`...
- --> $SRC_DIR/libcore/mem/mod.rs:LL:COL
- |
-LL | intrinsics::size_of::<T>()
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `std::intrinsics::size_of`...
- --> $SRC_DIR/libcore/intrinsics.rs:LL:COL
- |
-LL | pub fn size_of<T>() -> usize;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: ...which requires computing layout of `Foo`...
= note: ...which requires normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: [u8; _] }`...
= note: ...which again requires const-evaluating + checking `Foo::bytes::{{constant}}#0`, completing the cycle
| ^^
error[E0080]: could not evaluate static initializer
- --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
- |
-LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
-LL | | // Code here does not matter - this is replaced by the
-LL | | // real drop glue by the compiler.
-LL | | drop_in_place(to_drop)
-LL | | }
- | |_^ calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
|
::: $DIR/drop.rs:23:1
|
error: any use of this value will cause an error
- --> $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
- |
-LL | intrinsics::ptr_offset_from(self, origin)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | ptr_offset_from cannot compute offset of pointers into different allocations.
- | inside call to `std::ptr::const_ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:22:27
|
::: $DIR/offset_from_ub.rs:16:1
|
= note: `#[deny(const_err)]` on by default
error: any use of this value will cause an error
- --> $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
- |
-LL | intrinsics::ptr_offset_from(self, origin)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | a memory access tried to interpret some bytes as a pointer
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:28:14
|
::: $DIR/offset_from_ub.rs:26:1
|
| |__-
error: any use of this value will cause an error
- --> $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
- |
-LL | intrinsics::ptr_offset_from(self, origin)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | exact_div: 1 cannot be divided by 2 without remainder
- | inside call to `std::ptr::const_ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:36:14
|
::: $DIR/offset_from_ub.rs:31:1
|
| |__-
error: any use of this value will cause an error
- --> $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
- |
-LL | intrinsics::ptr_offset_from(self, origin)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | invalid use of NULL pointer
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:42:14
|
::: $DIR/offset_from_ub.rs:39:1
|
| |__-
error: any use of this value will cause an error
- --> $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
- |
-LL | intrinsics::ptr_offset_from(self, origin)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | a memory access tried to interpret some bytes as a pointer
- | inside call to `std::ptr::const_ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:49:14
|
::: $DIR/offset_from_ub.rs:45:1
|
|
LL | x: Error
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
- |
- ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
- |
-LL | fn hash<H: Hasher>(&self, state: &mut H);
- | - required by this bound in `std::hash::Hash::hash`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
LL | Error
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
- |
- ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
- |
-LL | fn hash<H: Hasher>(&self, state: &mut H);
- | - required by this bound in `std::hash::Hash::hash`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
LL | x: Error
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
- |
- ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
- |
-LL | fn hash<H: Hasher>(&self, state: &mut H);
- | - required by this bound in `std::hash::Hash::hash`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
LL | Error
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`
- |
- ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
- |
-LL | fn hash<H: Hasher>(&self, state: &mut H);
- | - required by this bound in `std::hash::Hash::hash`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find derive macro `Eqr` in this scope
--> $DIR/deriving-meta-unknown-trait.rs:5:10
|
-LL | #[derive(Eqr)]
- | ^^^ help: a derive macro with a similar name exists: `Eq`
- |
- ::: $SRC_DIR/libcore/cmp.rs:LL:COL
- |
-LL | pub macro Eq($item:item) {
- | ------------------------ similarly named derive macro `Eq` defined here
+LL | #[derive(Eqr)]
+ | ^^^ help: a derive macro with a similar name exists: `Eq`
error: cannot find derive macro `Eqr` in this scope
--> $DIR/deriving-meta-unknown-trait.rs:5:10
|
-LL | #[derive(Eqr)]
- | ^^^ help: a derive macro with a similar name exists: `Eq`
- |
- ::: $SRC_DIR/libcore/cmp.rs:LL:COL
- |
-LL | pub macro Eq($item:item) {
- | ------------------------ similarly named derive macro `Eq` defined here
+LL | #[derive(Eqr)]
+ | ^^^ help: a derive macro with a similar name exists: `Eq`
error: aborting due to 2 previous errors
|
LL | fn hash(&self, hasher: &mut impl Hasher) {}
| ^^^^^^^^^^^ expected generic parameter, found `impl Trait`
- |
- ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
- |
-LL | fn hash<H: Hasher>(&self, state: &mut H);
- | - declaration in trait here
error: aborting due to 3 previous errors
LL | define_vec!();
| -------------- in this macro invocation
note: `Vec` could also refer to the struct defined here
- --> $SRC_DIR/libstd/prelude/v1.rs:LL:COL
- |
-LL | pub use crate::vec::Vec;
- | ^^^^^^^^^^^^^^^
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors
|
LL | fn deref(&self) -> &dyn Trait {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&Struct) -> &dyn Trait
- |
- ::: $SRC_DIR/libcore/ops/deref.rs:LL:COL
- |
-LL | fn deref(&self) -> &Self::Target;
- | --------------------------------- expected fn(&Struct) -> &(dyn Trait + 'static)
|
= note: expected `fn(&Struct) -> &(dyn Trait + 'static)`
found `fn(&Struct) -> &dyn Trait`
|
LL | catch_unwind(|| { x.set(23); });
| ^^^^^^^^^^^^ `std::cell::UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
- |
- ::: $SRC_DIR/libstd/panic.rs:LL:COL
- |
-LL | pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
- | ---------- required by this bound in `std::panic::catch_unwind`
|
= help: within `std::cell::Cell<i32>`, the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<i32>`
= note: required because it appears within the type `std::cell::Cell<i32>`
error[E0573]: expected type, found variant `NoResult`
--> $DIR/issue-17546.rs:16:17
|
-LL | fn new() -> NoResult<MyEnum, String> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- |
- ::: $SRC_DIR/libcore/result.rs:LL:COL
- |
-LL | pub enum Result<T, E> {
- | --------------------- similarly named enum `Result` defined here
+LL | fn new() -> NoResult<MyEnum, String> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try using the variant's enum
|
error[E0573]: expected type, found variant `NoResult`
--> $DIR/issue-17546.rs:37:15
|
-LL | fn newer() -> NoResult<foo::MyEnum, String> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- ::: $SRC_DIR/libcore/result.rs:LL:COL
- |
-LL | pub enum Result<T, E> {
- | --------------------- similarly named enum `Result` defined here
+LL | fn newer() -> NoResult<foo::MyEnum, String> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try using the variant's enum
|
|
LL | struct Foo(Bar);
| ^^^ the trait `std::hash::Hash` is not implemented for `Bar`
- |
- ::: $SRC_DIR/libcore/hash/mod.rs:LL:COL
- |
-LL | fn hash<H: Hasher>(&self, state: &mut H);
- | - required by this bound in `std::hash::Hash::hash`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
LL | None @ _ => {}
| ^^^^ cannot be named the same as a unit variant
- |
- ::: $SRC_DIR/libstd/prelude/v1.rs:LL:COL
- |
-LL | pub use crate::option::Option::{self, None, Some};
- | ---- the unit variant `None` is defined here
error[E0530]: match bindings cannot shadow constants
--> $DIR/issue-27033.rs:11:9
|
LL | .collect();
| ^^^^^^^ method not found in `std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:10:39: 13:6 found_e:_]>>`
- |
- ::: $SRC_DIR/libcore/iter/adapters/mod.rs:LL:COL
- |
-LL | pub struct Cloned<I> {
- | -------------------- doesn't satisfy `_: std::iter::Iterator`
...
LL | pub struct TakeWhile<I, P> {
| -------------------------- doesn't satisfy `<_ as std::iter::Iterator>::Item = &_`
| ^^^ this module is private
|
note: the module `sys` is defined here
- --> $SRC_DIR/libstd/lib.rs:LL:COL
- |
-LL | mod sys;
- | ^^^^^^^^
error: aborting due to 2 previous errors
error[E0412]: cannot find type `Fo` in this scope
--> $DIR/issue-7607-1.rs:9:6
|
-LL | impl Fo {
- | ^^ help: a trait with a similar name exists: `Fn`
- |
- ::: $SRC_DIR/libcore/ops/function.rs:LL:COL
- |
-LL | pub trait Fn<Args>: FnMut<Args> {
- | ------------------------------- similarly named trait `Fn` defined here
+LL | impl Fo {
+ | ^^ help: a trait with a similar name exists: `Fn`
error: aborting due to previous error
error: cannot find macro `printlx` in this scope
--> $DIR/macro-name-typo.rs:6:5
|
-LL | printlx!("oh noes!");
- | ^^^^^^^ help: a macro with a similar name exists: `println`
- |
- ::: $SRC_DIR/libstd/macros.rs:LL:COL
- |
-LL | macro_rules! println {
- | -------------------- similarly named macro `println` defined here
+LL | printlx!("oh noes!");
+ | ^^^^^^^ help: a macro with a similar name exists: `println`
error: aborting due to previous error
error: cannot find macro `inline` in this scope
--> $DIR/macro-path-prelude-fail-3.rs:6:5
|
-LL | inline!();
- | ^^^^^^ help: a macro with a similar name exists: `line`
- |
- ::: $SRC_DIR/libcore/macros/mod.rs:LL:COL
- |
-LL | macro_rules! line {
- | ----------------- similarly named macro `line` defined here
+LL | inline!();
+ | ^^^^^^ help: a macro with a similar name exists: `line`
error: aborting due to previous error
| |
| doesn't satisfy `<_ as std::ops::FnOnce<(&&str,)>>::Output = bool`
| doesn't satisfy `_: std::ops::FnMut<(&&str,)>`
- |
- ::: $SRC_DIR/libcore/iter/adapters/mod.rs:LL:COL
- |
-LL | pub struct Filter<I, P> {
- | ----------------------- doesn't satisfy `_: std::iter::Iterator`
|
= note: the method `count` exists but the following trait bounds were not satisfied:
`<[closure@$DIR/issue-36053-2.rs:11:39: 11:53] as std::ops::FnOnce<(&&str,)>>::Output = bool`
LL | | println!("{:?}", y);
LL | | });
| |_____- within this `[closure@$DIR/no-send-res-ports.rs:29:19: 33:6 x:main::Foo]`
- |
- ::: $SRC_DIR/libstd/thread/mod.rs:LL:COL
- |
-LL | F: Send + 'static,
- | ---- required by this bound in `std::thread::spawn`
|
= help: within `[closure@$DIR/no-send-res-ports.rs:29:19: 33:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
= note: required because it appears within the type `Port<()>`
...
LL | one!("hello", "world");
| ----------------------- in this macro invocation
- |
- ::: $SRC_DIR/libcore/result.rs:LL:COL
- |
-LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
- | --------------------------------------------------- similarly named tuple variant `Ok` defined here
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
...
LL | two!("yay", "rust");
| -------------------- in this macro invocation
- |
- ::: $SRC_DIR/libcore/result.rs:LL:COL
- |
-LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
- | --------------------------------------------------- similarly named tuple variant `Ok` defined here
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
...
LL | three!("hip", "hop");
| --------------------- in this macro invocation
- |
- ::: $SRC_DIR/libcore/result.rs:LL:COL
- |
-LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
- | --------------------------------------------------- similarly named tuple variant `Ok` defined here
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find derive macro `Dlone` in this scope
--> $DIR/resolve-error.rs:39:10
|
-LL | #[derive(Dlone)]
- | ^^^^^ help: a derive macro with a similar name exists: `Clone`
- |
- ::: $SRC_DIR/libcore/clone.rs:LL:COL
- |
-LL | pub macro Clone($item:item) {
- | --------------------------- similarly named derive macro `Clone` defined here
+LL | #[derive(Dlone)]
+ | ^^^^^ help: a derive macro with a similar name exists: `Clone`
error: cannot find derive macro `Dlone` in this scope
--> $DIR/resolve-error.rs:39:10
|
-LL | #[derive(Dlone)]
- | ^^^^^ help: a derive macro with a similar name exists: `Clone`
- |
- ::: $SRC_DIR/libcore/clone.rs:LL:COL
- |
-LL | pub macro Clone($item:item) {
- | --------------------------- similarly named derive macro `Clone` defined here
+LL | #[derive(Dlone)]
+ | ^^^^^ help: a derive macro with a similar name exists: `Clone`
error: cannot find attribute `FooWithLongNan` in this scope
--> $DIR/resolve-error.rs:36:3
|
LL | type B = Opiton<u8>; // Misspelled type name from the prelude.
| ^^^^^^ help: an enum with a similar name exists: `Option`
- |
- ::: $SRC_DIR/libcore/option.rs:LL:COL
- |
-LL | pub enum Option<T> {
- | ------------------ similarly named enum `Option` defined here
error[E0412]: cannot find type `Baz` in this scope
--> $DIR/levenshtein.rs:20:14
LL | | "0".parse()
LL | | }
| |_^ `main` can only return types that implement `std::process::Termination`
- |
- ::: $SRC_DIR/libtest/lib.rs:LL:COL
- |
-LL | pub fn assert_test_result<T: Termination>(result: T) {
- | ----------- required by this bound in `test::assert_test_result`
|
= help: the trait `std::process::Termination` is not implemented for `std::result::Result<f32, std::num::ParseFloatError>`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
| ^^^^^^^^^^^ this module is private
|
note: the module `thread_info` is defined here
- --> $SRC_DIR/libstd/thread/mod.rs:LL:COL
- |
-LL | use crate::sys_common::thread_info;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: cannot find attribute `tests` in this scope
--> $DIR/attribute-typos.rs:8:3
|
-LL | #[tests]
- | ^^^^^ help: an attribute macro with a similar name exists: `test`
- |
- ::: $SRC_DIR/libcore/macros/mod.rs:LL:COL
- |
-LL | pub macro test($item:item) {
- | -------------------------- similarly named attribute macro `test` defined here
+LL | #[tests]
+ | ^^^^^ help: an attribute macro with a similar name exists: `test`
error: cannot find attribute `deprcated` in this scope
--> $DIR/attribute-typos.rs:5:3
|
LL | t.min().unwrap()
| ^^^
- |
- ::: $SRC_DIR/libcore/iter/traits/iterator.rs:LL:COL
- |
-LL | Self: Sized,
- | ----- this has a `Sized` requirement
|
= note: you need `&mut dyn std::iter::Iterator<Item = &u64>` instead of `&dyn std::iter::Iterator<Item = &u64>`
|
LL | writeln!(fp, "hello world").unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::io::BufWriter<&dyn std::io::Write>`
- |
- ::: $SRC_DIR/libstd/io/buffered.rs:LL:COL
- |
-LL | pub struct BufWriter<W: Write> {
- | ------------------------------ doesn't satisfy `_: std::io::Write`
|
= note: the method `write_fmt` exists but the following trait bounds were not satisfied:
`&dyn std::io::Write: std::io::Write`
|
LL | let _: &dyn EqAlias = &123;
| ^^^^^^^^^^^ the trait `std::cmp::Eq` cannot be made into an object
- |
- ::: $SRC_DIR/libcore/cmp.rs:LL:COL
- |
-LL | pub trait Eq: PartialEq<Self> {
- | --------------- the trait cannot be made into an object because it uses `Self` as a type parameter in this
error[E0191]: the value of the associated type `Item` (from trait `std::iter::Iterator`) must be specified
--> $DIR/trait-alias-object-fail.rs:14:17
LL | // suggest a where-clause, if needed
LL | mem::size_of::<U>();
| ^ doesn't have a size known at compile-time
- |
- ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
- |
-LL | pub const fn size_of<T>() -> usize {
- | - required by this bound in `std::mem::size_of`
|
= help: the trait `std::marker::Sized` is not implemented for `U`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
...
LL | mem::size_of::<Misc<U>>();
| ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
- |
- ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
- |
-LL | pub const fn size_of<T>() -> usize {
- | - required by this bound in `std::mem::size_of`
|
= help: within `Misc<U>`, the trait `std::marker::Sized` is not implemented for `U`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
LL | mem::size_of::<[T]>();
| ^^^ doesn't have a size known at compile-time
- |
- ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
- |
-LL | pub const fn size_of<T>() -> usize {
- | - required by this bound in `std::mem::size_of`
|
= help: the trait `std::marker::Sized` is not implemented for `[T]`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
LL | mem::size_of::<[&U]>();
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
- |
- ::: $SRC_DIR/libcore/mem/mod.rs:LL:COL
- |
-LL | pub const fn size_of<T>() -> usize {
- | - required by this bound in `std::mem::size_of`
|
= help: the trait `std::marker::Sized` is not implemented for `[&U]`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
error: reached the type-length limit while instantiating `std::mem::drop::<std::option::Op... G), (G, G, G), (G, G, G))))))>>`
- --> $SRC_DIR/libcore/mem/mod.rs:LL:COL
- |
-LL | pub fn drop<T>(_x: T) {}
- | ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: consider adding a `#![type_length_limit="1094"]` attribute to your crate
...
LL | let _z = y.clone();
| ^^^^^ method not found in `std::boxed::Box<dyn Foo>`
- |
- ::: $SRC_DIR/liballoc/boxed.rs:LL:COL
- |
-LL | pub struct Box<T: ?Sized>(Unique<T>);
- | ------------------------------------- doesn't satisfy `std::boxed::Box<dyn Foo>: std::clone::Clone`
|
= note: the method `clone` exists but the following trait bounds were not satisfied:
`dyn Foo: std::marker::Sized`
...
LL | let _j = i.clone();
| ^^^^^ method not found in `std::boxed::Box<R>`
- |
- ::: $SRC_DIR/liballoc/boxed.rs:LL:COL
- |
-LL | pub struct Box<T: ?Sized>(Unique<T>);
- | ------------------------------------- doesn't satisfy `std::boxed::Box<R>: std::clone::Clone`
|
= note: the method `clone` exists but the following trait bounds were not satisfied:
`R: std::clone::Clone`