rust/tests/ui/consts/issue-63226.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
381 B
Rust
Raw Normal View History

2019-08-15 04:56:57 +00:00
//@ aux-build:issue-63226.rs
//@ compile-flags:--extern issue_63226
//@ edition:2018
//@ build-pass
2019-08-15 07:59:03 +00:00
// A regression test for issue #63226.
// Checks if `const fn` is marked as reachable.
2019-08-15 04:56:57 +00:00
use issue_63226::VTable;
static ICE_ICE:&'static VTable=VTable::vtable();
static MORE_ICE:&'static VTable=VTable::VTABLE2;
static MORE_ICE3:&'static VTable=issue_63226::VTABLE3;
2019-08-15 04:56:57 +00:00
fn main() {}