Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8640
Expression tree cannot contain value of ref struct or restricted type '{0}'.