Use ObligationCtxt::new_in_snapshot in satisfied_from_param_env
This commit is contained in:
parent
f55b0022db
commit
343a359109
3 changed files with 57 additions and 1 deletions
|
@ -0,0 +1,17 @@
|
|||
#![feature(generic_const_exprs)]
|
||||
#![allow(incomplete_features)]
|
||||
|
||||
pub trait Enumerable {
|
||||
const N: usize;
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct SymmetricGroup<S>
|
||||
where
|
||||
S: Enumerable,
|
||||
[(); S::N]: Sized,
|
||||
{
|
||||
_phantom: std::marker::PhantomData<S>,
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue