mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Adjust tests
This commit is contained in:
parent
8f79fc24e3
commit
b60b76c9dd
@ -1,5 +1,6 @@
|
||||
// build-pass
|
||||
// run-pass
|
||||
// edition:2021
|
||||
// check-run-results
|
||||
|
||||
#![feature(dyn_star)]
|
||||
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
|
1
src/test/ui/dyn-star/dispatch-on-pin-mut.run.stdout
Normal file
1
src/test/ui/dyn-star/dispatch-on-pin-mut.run.stdout
Normal file
@ -0,0 +1 @@
|
||||
value: 1
|
@ -1,5 +1,5 @@
|
||||
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/dispatch-on-pin-mut.rs:4:12
|
||||
--> $DIR/dispatch-on-pin-mut.rs:5:12
|
||||
|
|
||||
LL | #![feature(dyn_star)]
|
||||
| ^^^^^^^^
|
||||
|
@ -1,7 +1,8 @@
|
||||
// check-pass
|
||||
// run-pass
|
||||
// check-run-results
|
||||
|
||||
#![feature(dyn_star)]
|
||||
#![allow(incomplete_features)]
|
||||
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
|
||||
trait AddOne {
|
||||
fn add1(&mut self) -> usize;
|
||||
|
@ -0,0 +1,2 @@
|
||||
43
|
||||
44
|
11
src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr
Normal file
11
src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr
Normal file
@ -0,0 +1,11 @@
|
||||
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/dont-unsize-coerce-dyn-star.rs:4:12
|
||||
|
|
||||
LL | #![feature(dyn_star)]
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
@ -1,4 +1,4 @@
|
||||
// known-bug: unknown
|
||||
// known-bug: #104800
|
||||
|
||||
#![feature(dyn_star, trait_upcasting)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user