add test for const fn
This commit is contained in:
parent
113bdaa119
commit
673b8d5f22
1 changed files with 14 additions and 0 deletions
|
|
@ -58,6 +58,20 @@ pub fn render<'a,
|
|||
render_opts(g, w, &[])
|
||||
}
|
||||
|
||||
const fn foo() {
|
||||
x;
|
||||
}
|
||||
|
||||
pub const fn foo() {
|
||||
x;
|
||||
}
|
||||
|
||||
impl Foo {
|
||||
const fn foo() {
|
||||
x;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _ = function(move || 5);
|
||||
let _ = move || 42;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue