blob: 2ba30551b2a9d3ac5c2d0fda4d9a44126c3b22fb [file]
#![feature(no_core, intrinsics, staged_api, lang_items)]
#![no_core]
#[lang = "sized"]
pub trait Sized {}
pub struct Foo<const N: usize>;
pub fn foo<const N: usize>() -> Foo<{ N + 1 }> {
// { dg-error "failed to resolve const expression" "" { target *-*-* } .-1 }
Foo
}