Adjust tests

This commit is contained in:
Michael Goulet 2022-11-24 02:36:46 +00:00
parent 8f79fc24e3
commit b60b76c9dd
7 changed files with 21 additions and 5 deletions

View File

@ -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

View File

@ -0,0 +1 @@
value: 1

View File

@ -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)]
| ^^^^^^^^

View File

@ -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;

View File

@ -0,0 +1,2 @@
43
44

View 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

View File

@ -1,4 +1,4 @@
// known-bug: unknown
// known-bug: #104800
#![feature(dyn_star, trait_upcasting)]