Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 108e649

Browse files
committed
ices/96170.sh: fixed with no errors
=== stdout === warning: trait objects without an explicit `dyn` are deprecated --> <anon>:52:38 | 52 | fn unsized_local() where for<'a> Dst<A + 'a>: Sized { | ^^^^^^ | = note: `#[warn(bare_trait_objects)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> help: use `dyn` | 52 - fn unsized_local() where for<'a> Dst<A + 'a>: Sized { 52 + fn unsized_local() where for<'a> Dst<dyn A + 'a>: Sized { | warning: trait objects without an explicit `dyn` are deprecated --> <anon>:53:16 | 53 | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); | ^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> help: use `dyn` | 53 - let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); 53 + let x: Dst<dyn A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); | warning: trait objects without an explicit `dyn` are deprecated --> <anon>:53:57 | 53 | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); | ^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> help: use `dyn` | 53 - let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); 53 + let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<dyn A>>); | warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:11:19 | 11 | enum E where i32: Foo { V } | ^^^ | = note: `#[warn(trivial_bounds)]` on by default warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:13:21 | 13 | struct S where i32: Foo; | ^^^ warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:15:20 | 15 | trait T where i32: Foo {} | ^^^ warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:17:20 | 17 | union U where i32: Foo { f: i32 } | ^^^ warning: where clauses are not enforced in type aliases --> <anon>:19:14 | 19 | type Y where i32: Foo = (); | ^^^^^^^^ | = note: `#[warn(type_alias_bounds)]` on by default help: the clause will not be checked when the type alias is used, and should be removed | 19 - type Y where i32: Foo = (); 19 + type Y = (); | warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:19:19 | 19 | type Y where i32: Foo = (); | ^^^ warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:21:28 | 21 | impl Foo for () where i32: Foo { | ^^^ warning: trait bound i32: Foo does not depend on any type or lifetime parameters --> <anon>:29:19 | 29 | fn f() where i32: Foo { | ^^^ warning: trait bound &'static str: Foo does not depend on any type or lifetime parameters --> <anon>:36:28 | 36 | fn g() where &'static str: Foo { | ^^^ warning: trait bound str: Sized does not depend on any type or lifetime parameters --> <anon>:50:37 | 50 | struct TwoStrs(str, str) where str: Sized; | ^^^^^ warning: trait bound for<'a> Dst<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters --> <anon>:52:47 | 52 | fn unsized_local() where for<'a> Dst<A + 'a>: Sized { | ^^^^^ warning: trait bound str: Sized does not depend on any type or lifetime parameters --> <anon>:56:35 | 56 | fn return_str() -> str where str: Sized { | ^^^^^ warning: trait bound String: Neg does not depend on any type or lifetime parameters --> <anon>:60:46 | 60 | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: trait bound i32: Iterator does not depend on any type or lifetime parameters --> <anon>:64:25 | 64 | fn use_for() where i32: Iterator { | ^^^^^^^^ warning: 17 warnings emitted === stderr === ==============
1 parent 4950e08 commit 108e649

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)