forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback effects even if types also fall back
- Loading branch information
1 parent
5adddad
commit 5c907a7
Showing
2 changed files
with
9 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
// check-pass | ||
|
||
#![feature(const_trait_impl, effects)] | ||
#![feature(effects)] | ||
|
||
pub const fn owo() {} | ||
|
||
fn main() { | ||
// make sure falling back ty/int vars doesn't cause const fallback to be skipped... | ||
// See issue: 115791. | ||
let _ = 1; | ||
if false { | ||
let x = panic!(); | ||
} | ||
|
||
let _ = owo; | ||
} |