-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
propagate
tainted_by_errors
in MirBorrowckCtxt::emit_errors
- Loading branch information
1 parent
842d6fc
commit 494e5b7
Showing
5 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0792]: expected generic lifetime parameter, found `'_` | ||
--> $DIR/taint.rs:12:17 | ||
| | ||
LL | type Two<'a, 'b> = impl std::fmt::Debug; | ||
| -- this generic parameter must be used with a generic lifetime parameter | ||
... | ||
LL | let c1 = || set(x); | ||
| ^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0792`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//@ known-bug: #124164 | ||
// reported as #124164 | ||
static S_COUNT: = std::sync::atomic::AtomicUsize::new(0); | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: missing type for `static` item | ||
--> $DIR/missing-type.rs:2:16 | ||
| | ||
LL | static S_COUNT: = std::sync::atomic::AtomicUsize::new(0); | ||
| ^ help: provide a type for the static variable: `AtomicUsize` | ||
|
||
error: aborting due to 1 previous error | ||
|