diff options
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 15b425c8..a8a8c342 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -708,7 +708,7 @@ bool GenericParams::check_params(Crate& crate, ::std::vector<TypeRef>& types, bo {
const auto& trait = bound.as_IsTrait().trait;
// Check if 'type' impls 'trait'
- if( !crate.find_impl(trait, trait, nullptr, nullptr) )
+ if( !crate.find_impl(trait, TypeRef(Span(), trait), nullptr, nullptr) )
{
throw ::std::runtime_error( FMT("No matching impl of "<<trait<<" for "<<type));
}
|